﻿
/************************************公用方法**************************************************/
var userAgent = navigator.userAgent.toLowerCase();
var browser = {
    version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
    safari: /webkit/.test(userAgent),
    opera: /opera/.test(userAgent),
    msie: /msie/.test(userAgent) && !/opera/.test(userAgent),
    mozilla: /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent)
};
//判断对象是否存在
function $_(val) {
    if (val != '' && $('#' + val).length > 0) {
        return $('#' + val)
    }
    else {
        return false;
    }
}
//注册event
function regEventInMozilla() {
}
//防止事件冒泡
function stopBub() {
    var e = getEvent();
    if (window.event) {
        //e.returnValue=false;//阻止自身行为
        e.cancelBubble = true; //阻止冒泡
    } else if (e.preventDefault) {
        //e.preventDefault();//阻止自身行为
        e.stopPropagation(); //阻止冒泡
    }
}
function getEvent() {
    if (window.event) { return window.event; }
    func = getEvent.caller;
    while (func != null) {
        var arg0 = func.arguments[0];
        if (arg0) {
            if ((arg0.constructor == Event || arg0.constructor == MouseEvent
                || arg0.constructor == KeyboardEvent)
                || (typeof (arg0) == "object" && arg0.preventDefault
                && arg0.stopPropagation)) {
                return arg0;
            }
        }
        func = func.caller;
    }
    return null;
}

function getBytes(a, d) {
    if (!a || !d) return "";
    for (var c = 0,
		b = 0,
		e = "",
		b = 0; b < a.length; b++) {
        var f = a.charCodeAt(b);
        f > 255 ? c += 2 : c++;
        if (c > d) return e + "...";
        e += a.charAt(b)
    }
    return a
};
/**
* 移除数组项
* @return 数组
*/
Array.prototype.removeArray = function (strval) {
    for (var i = 0, n = 0; i < this.length; i++) {
        if (this[i] != strval) {
            this[n++] = this[i]
        }
    }
    if (this.length > 0) {
        this.length -= 1
    }
}
/************************************公用方法******end********************************************/

window.resume_areaLayer = (function () {
    //======================数据字典=======================
    //热门城市
    var maincity = ['010000', '020000', '030200', '040000', '050000', '060000', '070200', '180200', '200200', '080200', '090200', '070300', '080300', '120300', '230200', '230300', '030800', '110200', '120200', '150200', '170200', '190200', '220200', '240200', '250200', '070400', '070500', '030500', '030600', '130200'];
    //var maincity = ['010000', '020000', '030200', '040000', '180200', '200200', '080200', '070200', '090200', '060000', '030800', '230300', '230200', '070300', '250200', '190200', '150200', '080300', '170200', '050000', '120300', '120200', '220200', '240200', '110200'];
    //其他省份数据字典
    var allprov = ['030000', '070000', '080000', '090000', '100000', '110000', '120000', '130000', '140000', '150000', '160000', '170000', '180000', '190000', '200000', '210000', '220000', '230000', '240000', '250000', '260000', '270000', '280000', '290000', '300000', '310000', '320000'];

    //var allprov = ['150000', '110000', '270000', '030000', '140000', '260000', '100000', '160000', '170000', '180000', '190000', '220000', '240000', '070000', '130000', '230000', '280000', '290000', '320000', '120000', '210000', '200000', '090000', '300000', '310000', '250000', '080000'];
    //特殊地区
    var specialarea = ['330000', '340000', '350000', '360000'];
    //居住地点键值匹配数组
    if ('en' == lang) {
        var ja = [];
        ja['010000'] = 'Beijing'; ja['010100'] = 'Dongcheng'; ja['010200'] = 'Xicheng'; ja['010300'] = 'Chongwen'; ja['010400'] = 'Xuanwu'; ja['010500'] = 'Chaoyang'; ja['010600'] = 'Fengtai'; ja['010700'] = 'Shijingshan'; ja['010800'] = 'Haidian'; ja['010900'] = 'Mentougou'; ja['011000'] = 'Fangshan'; ja['011100'] = 'Tongzhou'; ja['011200'] = 'Shunyi'; ja['011300'] = 'Changping'; ja['011400'] = 'Daxing'; ja['011500'] = 'Huairou'; ja['011600'] = 'Pinggu'; ja['011700'] = 'Miyun'; ja['011800'] = 'Yanqing';
        ja['020000'] = 'Shanghai'; ja['020100'] = 'Huangpu'; ja['020200'] = 'Luwan'; ja['020300'] = 'Xuhui'; ja['020400'] = 'Changning'; ja['020500'] = 'Jingan'; ja['020600'] = 'Putuo'; ja['020700'] = 'Zhabei'; ja['020800'] = 'Hongkou'; ja['020900'] = 'Yangpu'; ja['021000'] = 'Pudong'; ja['021100'] = 'Minhang'; ja['021200'] = 'Baoshan'; ja['021300'] = 'Jiading'; ja['021400'] = 'Jinshan'; ja['021500'] = 'Songjiang'; ja['021600'] = 'Qingpu'; ja['021800'] = 'Fengxian'; ja['021900'] = 'Chongming';
        ja['030000'] = 'Guangdong'; ja['030200'] = 'Guangzhou'; ja['030201'] = 'Yuexiu'; ja['030202'] = 'Liwan'; ja['030203'] = 'Haizhu'; ja['030204'] = 'Tianhe'; ja['030205'] = 'Baiyun'; ja['030206'] = 'Huangpu'; ja['030207'] = 'Panyu'; ja['030208'] = 'Huadu'; ja['030209'] = 'Nansha'; ja['030210'] = 'Luogang'; ja['030211'] = 'Zengcheng'; ja['030212'] = 'Conghua'; ja['030300'] = 'Huizhou'; ja['030400'] = 'Shantou'; ja['030500'] = 'Zhuhai'; ja['030501'] = 'Xiangzhou'; ja['030502'] = 'Doumen'; ja['030503'] = 'Jinwan'; ja['030504'] = 'Hengqin'; ja['030505'] = 'Gaolangang'; ja['030506'] = 'Zhuhaigaoxin'; ja['030507'] = 'Zhuhai Bonded Area'; ja['030508'] = 'Wanshan'; ja['030600'] = 'Foshan'; ja['030601'] = 'Chancheng'; ja['030602'] = 'Shunde'; ja['030603'] = 'Nanhai';
        ja['030604'] = 'Sanshui'; ja['030605'] = 'Gaoming'; ja['030700'] = 'Zhongshan'; ja['030800'] = 'Dongguan'; ja['030801'] = 'Guancheng'; ja['030802'] = 'Nancheng'; ja['030803'] = 'Dongcheng'; ja['030804'] = 'Wanjiang'; ja['030805'] = 'Shijie'; ja['030806'] = 'Shilong'; ja['030807'] = 'Chashan'; ja['030808'] = 'Shipai'; ja['030809'] = 'Qishi'; ja['030810'] = 'Hengli'; ja['030811'] = 'Qiaotou'; ja['030812'] = 'Xiegang'; ja['030813'] = 'Dongkeng'; ja['030814'] = 'Changping'; ja['030815'] = 'Liaobu'; ja['030816'] = 'Dalang'; ja['030817'] = 'Machong'; ja['030818'] = 'Zhongtang'; ja['030819'] = 'Gaobu'; ja['030820'] = 'Zhangmutou'; ja['030821'] = 'Dalingshan'; ja['030822'] = 'Wangniudun'; ja['030823'] = 'Huangjiang'; ja['030824'] = 'Hongmei'; ja['030825'] = 'Qingxi'; ja['030826'] = 'Shatian'; ja['030827'] = 'Daojiao'; ja['030828'] = 'Tangxia'; ja['030829'] = 'Humen'; ja['030830'] = 'Houjie'; ja['030831'] = 'Fenggang'; ja['030832'] = 'Changan'; ja['030833'] = 'Songshanhu'; ja['031400'] = 'Shaoguan'; ja['031500'] = 'Jiangmen'; ja['031700'] = 'Zhanjiang'; ja['031800'] = 'Zhaoqing'; ja['031900'] = 'Qingyuan'; ja['032000'] = 'Chaozhou'; ja['032100'] = 'Heyuan'; ja['032200'] = 'Jieyang'; ja['032300'] = 'Maoming'; ja['032400'] = 'Shanwei'; ja['032600'] = 'Meizhou'; ja['032700'] = 'Kaiping'; ja['032800'] = 'Yangjiang'; ja['032900'] = 'Yunfu';
        ja['040000'] = 'Shenzhen'; ja['040100'] = 'Futian'; ja['040200'] = 'Luohu'; ja['040300'] = 'Nanshan'; ja['040400'] = 'Yantian'; ja['040500'] = 'Baoan'; ja['040600'] = 'Longgang'; ja['040700'] = 'Guangming'; ja['040800'] = 'Pingshan'; ja['040900'] = 'Dapeng'; ja['041000'] = 'Longhua';
        ja['050000'] = 'Tianjin'; ja['050100'] = 'Heping'; ja['050200'] = 'Hedong'; ja['050300'] = 'Hexi'; ja['050400'] = 'Nankai'; ja['050500'] = 'Hebei'; ja['050600'] = 'Hongqiao'; ja['050700'] = 'Dongli'; ja['050800'] = 'Xiqing'; ja['050900'] = 'Jinnan'; ja['051000'] = 'Beichen'; ja['051100'] = 'Wuqing'; ja['051200'] = 'Baodi'; ja['051300'] = 'Binhai'; ja['051400'] = 'Ninghe'; ja['051500'] = 'Jinghai'; ja['051600'] = 'Jixian';
        ja['060000'] = 'Chongqing'; ja['060100'] = 'Yuzhong'; ja['060200'] = 'Dadukou'; ja['060300'] = 'Jiangbei'; ja['060400'] = 'Shapingba'; ja['060600'] = 'Hechuan'; ja['060700'] = 'Yubei'; ja['060800'] = 'Yongchuan'; ja['060900'] = 'Banan'; ja['061000'] = 'Nanchuan'; ja['061100'] = 'Jiulongpo'; ja['061200'] = 'Wanzhou'; ja['061300'] = 'Fuling'; ja['061400'] = 'Qianjiang'; ja['061500'] = 'Nanan'; ja['061600'] = 'Beibei'; ja['061700'] = 'Changshou'; ja['061900'] = 'Jiangjin'; ja['062000'] = 'Qijiang'; ja['062100'] = 'Tongnan'; ja['062200'] = 'Tongliang'; ja['062300'] = 'Dazu'; ja['062400'] = 'Rongchang'; ja['062500'] = 'Bishan'; ja['062600'] = 'Dianjiang'; ja['062700'] = 'Fengdu'; ja['062800'] = 'Zhongxian'; ja['062900'] = 'Shizhu'; ja['063000'] = 'Chengkou'; ja['063100'] = 'Pengshui'; ja['063200'] = 'Liangping'; ja['063300'] = 'Youyang'; ja['063400'] = 'Kaixian'; ja['063500'] = 'Xiushan'; ja['063600'] = 'Wuxi'; ja['063700'] = 'Wushan'; ja['063800'] = 'Fengjie'; ja['063900'] = 'Wulong'; ja['064000'] = 'Yunyang';
        ja['070000'] = 'Jiangsu'; ja['070200'] = 'Nanjing'; ja['070201'] = 'Xuanwu'; ja['070202'] = 'Baixia'; ja['070203'] = 'Qinhuai'; ja['070204'] = 'Jianye'; ja['070205'] = 'Gulou'; ja['070206'] = 'Xiaguan'; ja['070207'] = 'Pukou'; ja['070208'] = 'Liuhe'; ja['070209'] = 'Qixia'; ja['070210'] = 'Yuhuatai'; ja['070211'] = 'Jiangning'; ja['070212'] = 'Lishui'; ja['070213'] = 'Gaochun'; ja['070300'] = 'Suzhou'; ja['070301'] = 'Gusu'; ja['070302'] = 'Huqiu'; ja['070303'] = 'Wuzhong'; ja['070304'] = 'Xiangcheng'; ja['070305'] = 'Wujiang'; ja['070306'] = 'Industrial Park'; ja['070307'] = 'High-tech District'; ja['070400'] = 'Wuxi'; ja['070401'] = 'Chongan'; ja['070402'] = 'Nanchang'; ja['070403'] = 'Beitang'; ja['070404'] = 'Binhu'; ja['070405'] = 'Wuxixinqu'; ja['070406'] = 'Huishan'; ja['070407'] = 'Xishan'; ja['070408'] = 'Yixing'; ja['070409'] = 'Jiangyin'; ja['070500'] = 'Changzhou'; ja['070501'] = 'Tianning'; ja['070502'] = 'Zhonglou'; ja['070503'] = 'Qishuyan'; ja['070504'] = 'Xinbei'; ja['070505'] = 'Wujin'; ja['070506'] = 'Jintan'; ja['070507'] = 'Liyang'; ja['070600'] = 'Kunshan'; ja['070700'] = 'Changshu'; ja['070800'] = 'Yangzhou'; ja['070900'] = 'Nantong'; ja['071000'] = 'Zhenjiang'; ja['071100'] = 'Xuzhou'; ja['071200'] = 'Lianyungang'; ja['071300'] = 'Yancheng'; ja['071400'] = 'Zhangjiagang'; ja['071600'] = 'Taicang'; ja['071800'] = 'Taizhou'; ja['071900'] = 'Huaian'; ja['072000'] = 'Suqian'; ja['072100'] = 'Danyang'; ja['072300'] = 'Taixing'; ja['072500'] = 'Jingjiang';
        ja['080000'] = 'Zhejiang'; ja['080200'] = 'Hangzhou'; ja['080201'] = 'Gongshu'; ja['080202'] = 'Shangcheng'; ja['080203'] = 'Xiacheng'; ja['080204'] = 'Jianggan'; ja['080205'] = 'Xihu'; ja['080206'] = 'Binjiang'; ja['080207'] = 'Yuhang'; ja['080208'] = 'Xiaoshan'; ja['080209'] = 'Linan'; ja['080210'] = 'Fuyang'; ja['080211'] = 'Jiande'; ja['080212'] = 'Tonglu'; ja['080213'] = 'Chunan'; ja['080300'] = 'Ningbo'; ja['080301'] = 'Haishu'; ja['080302'] = 'Jiangdong'; ja['080303'] = 'Jiangbei'; ja['080304'] = 'Beilun'; ja['080305'] = 'Zhenhai'; ja['080306'] = 'Yinzhou'; ja['080307'] = 'Cixi'; ja['080308'] = 'Yuyao'; ja['080309'] = 'Fenghua'; ja['080310'] = 'Ninghai'; ja['080311'] = 'Xiangshan'; ja['080312'] = 'Ningbogaoxin'; ja['080400'] = 'Wenzhou'; ja['080500'] = 'Shaoxing'; ja['080600'] = 'Jinhua'; ja['080700'] = 'Jiaxing'; ja['080800'] = 'Taizhou'; ja['080900'] = 'Huzhou'; ja['081000'] = 'Lishui'; ja['081100'] = 'Zhoushan'; ja['081200'] = 'Quzhou'; ja['081400'] = 'Yiwu'; ja['081600'] = 'Haining';
        ja['090000'] = 'Sichuan'; ja['090200'] = 'Chengdu'; ja['090201'] = 'Qingyang'; ja['090202'] = 'Jinjiang'; ja['090203'] = 'Jinniu'; ja['090204'] = 'Wuhou'; ja['090205'] = 'Chenghua'; ja['090206'] = 'Longquanyi'; ja['090207'] = 'Qingbaijiang'; ja['090208'] = 'Xindu'; ja['090209'] = 'Wenjiang'; ja['090210'] = 'Dujiangyan'; ja['090211'] = 'Pengzhou'; ja['090212'] = 'Qionglai'; ja['090213'] = 'Chongzhou'; ja['090214'] = 'Jintang'; ja['090215'] = 'Shuangliu'; ja['090216'] = 'Pixian'; ja['090217'] = 'Dayi'; ja['090218'] = 'Pujiang'; ja['090219'] = 'Xinjin'; ja['090220'] = 'Gaoxin'; ja['090300'] = 'Mianyang'; ja['090400'] = 'Leshan'; ja['090500'] = 'Luzhou'; ja['090600'] = 'Deyang'; ja['090700'] = 'Yibin'; ja['090800'] = 'Zigong'; ja['090900'] = 'Neijiang'; ja['091000'] = 'Panzhihua'; ja['091100'] = 'Nanchong'; ja['091200'] = 'Meishan'; ja['091300'] = 'Guangan'; ja['091400'] = 'Ziyang'; ja['091500'] = 'Suining'; ja['091600'] = 'Guangyuan'; ja['091700'] = 'Dazhou'; ja['091800'] = 'Yaan'; ja['091900'] = 'Xichang'; ja['092000'] = 'Bazhong'; ja['092100'] = 'Ganzi'; ja['092200'] = 'Aba'; ja['092300'] = 'Liangshan';
        ja['100000'] = 'Hainan'; ja['100200'] = 'Haikou'; ja['100300'] = 'Sanya'; ja['100400'] = 'Yangpu'; ja['100500'] = 'Wenchang'; ja['100600'] = 'Qionghai'; ja['100700'] = 'Wanning'; ja['100800'] = 'Danzhou'; ja['100900'] = 'Dongfang'; ja['101000'] = 'Wuzhishan'; ja['101100'] = 'Dingan'; ja['101200'] = 'Tunchang'; ja['101300'] = 'Chengmai'; ja['101400'] = 'LinGao'; ja['101500'] = 'Sansha'; ja['101600'] = 'Qiongzhong'; ja['101700'] = 'Baoting'; ja['101800'] = 'Baisha'; ja['101900'] = 'Changjiang'; ja['102000'] = 'Yuedong'; ja['102100'] = 'Lingshui';
        ja['110000'] = 'Fujian'; ja['110200'] = 'Fuzhou'; ja['110201'] = 'Gulou'; ja['110202'] = 'Taijiang'; ja['110203'] = 'Cangshan'; ja['110204'] = 'Mawei'; ja['110205'] = 'Jinan'; ja['110206'] = 'Minhou'; ja['110207'] = 'Lianjiang'; ja['110208'] = 'Luoyuan'; ja['110209'] = 'Minqing'; ja['110210'] = 'Yongtai'; ja['110211'] = 'Pingtan'; ja['110212'] = 'Fuqing'; ja['110213'] = 'Changle'; ja['110300'] = 'Xiamen'; ja['110400'] = 'Quanzhou'; ja['110500'] = 'Zhangzhou'; ja['110600'] = 'Putian'; ja['110700'] = 'Sanming'; ja['110800'] = 'Nanping'; ja['110900'] = 'Ningde'; ja['111000'] = 'Longyan';
        ja['120000'] = 'Shandong'; ja['120200'] = 'Jinan'; ja['120201'] = 'Lixia'; ja['120202'] = 'Shizhong'; ja['120203'] = 'Huaiyin'; ja['120204'] = 'Tianqiao'; ja['120205'] = 'Licheng'; ja['120206'] = 'Changqing'; ja['120207'] = 'Pingyin'; ja['120208'] = 'Jiyang'; ja['120209'] = 'Shanghe'; ja['120210'] = 'Zhangqiu'; ja['120211'] = 'Gaoxin'; ja['120300'] = 'Qingdao'; ja['120301'] = 'Shinan'; ja['120302'] = 'Shibei'; ja['120303'] = 'Huangdao'; ja['120304'] = 'Laoshan'; ja['120305'] = 'Chengyang'; ja['120306'] = 'Licang'; ja['120307'] = 'Jiaozhou'; ja['120308'] = 'Jimo'; ja['120309'] = 'Pingdu'; ja['120310'] = 'Laixi'; ja['120400'] = 'Yantai'; ja['120500'] = 'Weifang'; ja['120600'] = 'Weihai'; ja['120700'] = 'Zibo'; ja['120800'] = 'Linyi'; ja['120900'] = 'Jining'; ja['121000'] = 'Dongying'; ja['121100'] = 'Taian'; ja['121200'] = 'Rizhao'; ja['121300'] = 'Dezhou'; ja['121400'] = 'Heze'; ja['121500'] = 'Binzhou'; ja['121600'] = 'Zaozhuang'; ja['121700'] = 'Liaocheng'; ja['121800'] = 'Laiwu';
        ja['130000'] = 'Jiangxi'; ja['130200'] = 'Nanchang'; ja['130201'] = 'Donghu'; ja['130202'] = 'Xihu'; ja['130203'] = 'Qingyunpu'; ja['130204'] = 'Wanli'; ja['130205'] = 'Qingshanhu'; ja['130206'] = 'Nanchang County'; ja['130207'] = 'Xinjian'; ja['130208'] = 'Anyi'; ja['130209'] = 'Jinxian'; ja['130210'] = 'Honggutan'; ja['130300'] = 'Jiujiang'; ja['130400'] = 'Jingdezhen'; ja['130500'] = 'Pingxiang '; ja['130600'] = 'Xinyu'; ja['130700'] = 'Yingtan'; ja['130800'] = 'Ganzhou'; ja['130900'] = 'Jian'; ja['131000'] = 'Yichun'; ja['131100'] = 'Fuzhou'; ja['131200'] = 'Shangrao';
        ja['140000'] = 'Guangxi'; ja['140200'] = 'Nanning'; ja['140300'] = 'Guilin'; ja['140400'] = 'Liuzhou'; ja['140500'] = 'Beihai'; ja['140600'] = 'Yulin'; ja['140700'] = 'Wuzhou'; ja['140800'] = 'Fangchenggang'; ja['140900'] = 'Qinzhou'; ja['141000'] = 'Guigang'; ja['141100'] = 'Baise'; ja['141200'] = 'Hechi'; ja['141300'] = 'Laibin'; ja['141400'] = 'Chongzuo'; ja['141500'] = 'Hezhou';
        ja['150000'] = 'Anhui'; ja['150200'] = 'Hefei'; ja['150201'] = 'Yaohai'; ja['150202'] = 'Luyang'; ja['150203'] = 'Shushan'; ja['150204'] = 'Baohe'; ja['150205'] = 'Jingkai'; ja['150206'] = 'Binhu'; ja['150207'] = 'Xinzhan'; ja['150208'] = 'Gaoxin'; ja['150209'] = 'Zhengwu'; ja['150210'] = 'Beicheng'; ja['150211'] = 'Chaohu'; ja['150212'] = 'Changfeng'; ja['150213'] = 'Feidong'; ja['150214'] = 'Feixi'; ja['150215'] = 'Lujiang'; ja['150300'] = 'Wuhu'; ja['150400'] = 'Anqing'; ja['150500'] = 'Maanshan'; ja['150600'] = 'Bangbu'; ja['150700'] = 'Fuyang'; ja['150800'] = 'Tongling'; ja['150900'] = 'Chuzhou'; ja['151000'] = 'Huangshan'; ja['151100'] = 'Huainan'; ja['151200'] = 'Liuan'; ja['151400'] = 'Xuancheng'; ja['151500'] = 'Chizhou'; ja['151600'] = 'Suzhou'; ja['151700'] = 'Huaibei'; ja['151800'] = 'Bozhou';
        ja['160000'] = 'Hebei'; ja['160200'] = 'Shijiazhuang'; ja['160300'] = 'Langfang'; ja['160400'] = 'Baoding'; ja['160500'] = 'Tangshan'; ja['160600'] = 'Qinhuangdao'; ja['160700'] = 'Handan'; ja['160800'] = 'Cangzhou'; ja['160900'] = 'Zhangjiakou'; ja['161000'] = 'Chengde'; ja['161100'] = 'Xingtai'; ja['161200'] = 'Hengshui'; ja['161300'] = 'Yanjiao';
        ja['170000'] = 'Henan'; ja['170200'] = 'Zhengzhou'; ja['172000'] = 'Dengzhou'; ja['170201'] = 'Zhongyuan'; ja['170202'] = 'Erqi'; ja['170203'] = 'Guanchenghuizu'; ja['170204'] = 'Jinshui'; ja['170205'] = 'Shangjie'; ja['170206'] = 'Huiji'; ja['170207'] = 'Zhongmou'; ja['170208'] = 'Gongyi'; ja['170209'] = 'Xingyang'; ja['170210'] = 'Xinmi'; ja['170211'] = 'Xinzheng'; ja['170212'] = 'Dengfeng'; ja['170213'] = 'Zhengdong'; ja['170214'] = 'Gaoxin'; ja['170215'] = 'Jingkai'; ja['170300'] = 'Luoyang'; ja['170400'] = 'Kaifeng'; ja['170500'] = 'Jiaozuo'; ja['170600'] = 'Nanyang'; ja['170700'] = 'Xinxiang'; ja['170800'] = 'Zhoukou'; ja['170900'] = 'AnYang'; ja['171000'] = 'Pingdingshan'; ja['171100'] = 'Xuchang'; ja['171200'] = 'Xinyang'; ja['171300'] = 'Shangqiu'; ja['171400'] = 'Zhumadian'; ja['171500'] = 'Luohe'; ja['171600'] = 'Puyang'; ja['171700'] = 'Hebi'; ja['171800'] = 'Sanmenxia'; ja['171900'] = 'Jiyuan';
        ja['180000'] = 'Hubei'; ja['180200'] = 'Wuhan'; ja['180201'] = 'Jiangan'; ja['180202'] = 'Jianghan'; ja['180203'] = 'Qiaokou '; ja['180204'] = 'Hanyang'; ja['180205'] = 'Wuchang'; ja['180206'] = 'Qingshan'; ja['180207'] = 'Hongshan'; ja['180208'] = 'Dongxihu'; ja['180209'] = 'Hannan'; ja['180210'] = 'Caidian'; ja['180211'] = 'Jiangxia'; ja['180212'] = 'Huangpi'; ja['180213'] = 'Xinzhou'; ja['180300'] = 'Yichang'; ja['180400'] = 'Huangshi'; ja['180500'] = 'Xiangyang'; ja['180600'] = 'Shiyan'; ja['180700'] = 'Jingzhou'; ja['180800'] = 'Jingmen'; ja['180900'] = 'Xiaogan'; ja['181000'] = 'Ezhou'; ja['181100'] = 'Huanggang'; ja['181200'] = 'SuiZhou'; ja['181300'] = 'Xianning'; ja['181400'] = 'Xiantao'; ja['181500'] = 'Qianjiang'; ja['181600'] = 'Tianmen'; ja['181700'] = 'Shennongjia'; ja['181800'] = 'Enshi';
        ja['190000'] = 'Hunan'; ja['190200'] = 'Changsha'; ja['190201'] = 'Furong'; ja['190202'] = 'Tianxin'; ja['190203'] = 'Yuelu'; ja['190204'] = 'Kaifu'; ja['190205'] = 'Yuhua'; ja['190206'] = 'Wangcheng'; ja['190207'] = 'Changsha'; ja['190208'] = 'Ningxiang'; ja['190209'] = 'Liuyang'; ja['190300'] = 'Zhuzhou'; ja['190400'] = 'Xiangtan'; ja['190500'] = 'Hengyang'; ja['190600'] = 'Yueyang'; ja['190700'] = 'Changde'; ja['190800'] = 'Yiyang'; ja['190900'] = 'Chenzhou'; ja['191000'] = 'Shaoyang'; ja['191100'] = 'Huaihua'; ja['191200'] = 'Loudi'; ja['191300'] = 'Yongzhou'; ja['191400'] = 'Zhangjiajie'; ja['191500'] = 'Xiangxi';
        ja['200000'] = 'Shaanxi'; ja['200200'] = 'Xian'; ja['200201'] = 'Lianhu'; ja['200202'] = 'Xincheng'; ja['200203'] = 'Beilin'; ja['200204'] = 'Baqiao'; ja['200205'] = 'Weiyang'; ja['200206'] = 'Yanta'; ja['200207'] = 'Yanliang'; ja['200208'] = 'Lintong'; ja['200209'] = 'Changan'; ja['200210'] = 'Lantian'; ja['200211'] = 'Zhouzhi'; ja['200212'] = 'Huxian'; ja['200213'] = 'Gaoling'; ja['200214'] = 'Gaoxinjishuchanye'; ja['200215'] = 'Jingjijishu'; ja['200216'] = 'Qujiangwenhua'; ja['200217'] = 'Chanbashengtai'; ja['200218'] = 'Guojiaminyonghangtianchanyejidi'; ja['200219'] = 'Xixian'; ja['200300'] = 'Xianyang'; ja['200400'] = 'Baoji'; ja['200500'] = 'Tongchuan'; ja['200600'] = 'Yanan'; ja['200700'] = 'Weinan'; ja['200800'] = 'Yulin'; ja['200900'] = 'Hanzhong'; ja['201000'] = 'AnKang'; ja['201100'] = 'Shangluo'; ja['201200'] = 'YangLing';
        ja['210000'] = 'Shanxi'; ja['210200'] = 'Taiyuan'; ja['210300'] = 'Yuncheng'; ja['210400'] = 'Datong'; ja['210500'] = 'Linfen'; ja['210600'] = 'Changzhi'; ja['210700'] = 'Jincheng'; ja['210800'] = 'Yangquan'; ja['210900'] = 'Shuozhou'; ja['211000'] = 'Jinzhong'; ja['211100'] = 'Xinzhou'; ja['211200'] = 'Lvliang';
        ja['220000'] = 'Heilongjiang'; ja['220200'] = 'Harbin'; ja['220201'] = 'Daoli'; ja['220202'] = 'Nangang'; ja['220203'] = 'Daowai'; ja['220204'] = 'Pingfang'; ja['220205'] = 'Songbei'; ja['220206'] = 'Xiangfang'; ja['220207'] = 'Hulan'; ja['220208'] = 'Acheng'; ja['220209'] = 'Yilan'; ja['220210'] = 'Fangzheng'; ja['220211'] = 'Bin'; ja['220212'] = 'Bayan'; ja['220213'] = 'Mulan'; ja['220214'] = 'Tonghe'; ja['220215'] = 'Yanshou'; ja['220216'] = 'Shuangcheng'; ja['220217'] = 'Shangzhi'; ja['220218'] = 'Wuchang'; ja['220300'] = 'Yichun'; ja['220400'] = 'Suihua'; ja['220500'] = 'Daqing'; ja['220600'] = 'Qiqihaer'; ja['220700'] = 'Mudanjiang'; ja['220800'] = 'Jiamusi'; ja['220900'] = 'Jixi'; ja['221000'] = 'Hegang'; ja['221100'] = 'Shuangyashan'; ja['221200'] = 'Heihe'; ja['221300'] = 'Qitaihe'; ja['221400'] = 'Daxinganling';
        ja['230000'] = 'Liaoning'; ja['230200'] = 'Shenyang'; ja['230201'] = 'Dadong'; ja['230202'] = 'Dongling（hunnan）'; ja['230203'] = 'Kangping'; ja['230204'] = 'Heping'; ja['230205'] = 'Huanggu'; ja['230206'] = 'Shenbei'; ja['230207'] = 'Shenhe'; ja['230208'] = 'Sujiatun'; ja['230209'] = 'Tiexi'; ja['230210'] = 'Yuhong'; ja['230211'] = 'Faku'; ja['230212'] = 'Liaozhong'; ja['230213'] = 'Xinmin'; ja['230300'] = 'Dalian'; ja['230301'] = 'Xigang'; ja['230302'] = 'Zhongshan'; ja['230303'] = 'Shahekou'; ja['230304'] = 'Ganjingzi'; ja['230305'] = 'Lvshunkou'; ja['230306'] = 'Jinzhou'; ja['230307'] = 'Wafangdian'; ja['230308'] = 'Pulandian'; ja['230309'] = 'Zhuanghe'; ja['230310'] = 'Changhai'; ja['230311'] = 'Kaifa'; ja['230312'] = 'Gaoxin'; ja['230313'] = 'Changxingdao'; ja['230314'] = 'Dalian Bonded Area'; ja['230400'] = 'Anshan'; ja['230500'] = 'Yingkou'; ja['230600'] = 'Fushun'; ja['230700'] = 'Jinzhou'; ja['230800'] = 'Dandong'; ja['230900'] = 'Huludao'; ja['231000'] = 'Benxi'; ja['231100'] = 'Liaoyang'; ja['231200'] = 'Tieling'; ja['231300'] = 'Panjin'; ja['231400'] = 'Chaoyang'; ja['231500'] = 'Fuxin';
        ja['240000'] = 'Jilin'; ja['240200'] = 'Changchun'; ja['240201'] = 'Chaoyang'; ja['240202'] = 'Nanguan'; ja['240203'] = 'Kuancheng'; ja['240204'] = 'Erdao'; ja['240205'] = 'Lvyuan'; ja['240206'] = 'Shuangyang'; ja['240207'] = 'Jingjijishu'; ja['240208'] = 'Gaoxinjishuchanye'; ja['240209'] = 'Jingyuejingji'; ja['240210'] = 'Qichechanye'; ja['240211'] = 'Yushu'; ja['240212'] = 'Jiutai'; ja['240213'] = 'Dehui'; ja['240214'] = 'Nongan'; ja['240300'] = 'Jilin'; ja['240400'] = 'Liaoyuan'; ja['240500'] = 'Tonghua'; ja['240600'] = 'Siping'; ja['240700'] = 'Songyuan'; ja['240800'] = 'Yanji'; ja['240900'] = 'Baishan'; ja['241000'] = 'Baicheng'; ja['241100'] = 'Yanbian';
        ja['250000'] = 'Yunnan'; ja['250200'] = 'Kunming'; ja['250201'] = 'Wuhua'; ja['250202'] = 'Panlong'; ja['250203'] = 'Guandu'; ja['250204'] = 'Xishan'; ja['250205'] = 'Dongchuan'; ja['250206'] = 'Chenggong'; ja['250207'] = 'Jinning'; ja['250208'] = 'Fumin'; ja['250209'] = 'Yiliang'; ja['250210'] = 'Shilinyizu'; ja['250211'] = 'Songming'; ja['250212'] = 'Luquan'; ja['250213'] = 'Xundian'; ja['250214'] = 'Anning'; ja['250300'] = 'Qujing'; ja['250400'] = 'Yuxi'; ja['250500'] = 'Dali'; ja['250600'] = 'Lijiang'; ja['251000'] = 'Honghezhou'; ja['251100'] = 'Puer'; ja['251200'] = 'Baoshan'; ja['251300'] = 'Zhaotong'; ja['251400'] = 'Wenshan'; ja['251500'] = 'Xishuangbanna'; ja['251600'] = 'Dehong'; ja['251700'] = 'Chuxiong'; ja['251800'] = 'Lincang'; ja['251900'] = 'Nujiang'; ja['252000'] = 'Diqing';
        ja['260000'] = 'Guizhou'; ja['260200'] = 'Guiyang'; ja['260300'] = 'Zunyi'; ja['260400'] = 'Liupanshui'; ja['260500'] = 'Anshun'; ja['260600'] = 'Tongren'; ja['260700'] = 'Bijie'; ja['260800'] = 'Qianxinan'; ja['260900'] = 'Qiandongnan'; ja['261000'] = 'Qiannan';
        ja['270000'] = 'Gansu'; ja['270200'] = 'Lanzhou'; ja['270300'] = 'Jinchang'; ja['270400'] = 'Jiayuguan'; ja['270500'] = 'Jiuquan'; ja['270600'] = 'Tianshui'; ja['270700'] = 'Wuwei'; ja['270800'] = 'Baiyin'; ja['270900'] = 'Zhangye'; ja['271000'] = 'Pingliang'; ja['271100'] = 'Dingxi'; ja['271200'] = 'Longnan'; ja['271300'] = 'Qingyang'; ja['271400'] = 'Linxia'; ja['271500'] = 'Gannan';
        ja['280000'] = 'Innermongolia'; ja['280200'] = 'Huhhot'; ja['280300'] = 'Chifeng'; ja['280400'] = 'Baotou'; ja['280700'] = 'Tongliao'; ja['280800'] = 'Eerduosi'; ja['280900'] = 'Bayannaoer'; ja['281000'] = 'Wuhai'; ja['281100'] = 'Hulunbeier'; ja['281200'] = 'Wulanchabu'; ja['281300'] = 'Xingan'; ja['281400'] = 'Xilinguole'; ja['281500'] = 'Alashan';
        ja['290000'] = 'Ningxia'; ja['290200'] = 'Yinchuan'; ja['290300'] = 'Wuzhong'; ja['290400'] = 'Zhongwei'; ja['290500'] = 'Shizuishan'; ja['290600'] = 'Guyuan';
        ja['300000'] = 'Tibet'; ja['300200'] = 'Lhasa'; ja['300300'] = 'Rikaze'; ja['300400'] = 'Linzhi'; ja['300500'] = 'Shannan'; ja['300600'] = 'Changdu'; ja['300700'] = 'Naqu'; ja['300800'] = 'Ali';
        ja['310000'] = 'Xinjiang'; ja['310200'] = 'Urumqi'; ja['310300'] = 'Kelamayi'; ja['310400'] = 'Kashidiqu'; ja['310500'] = 'Yili'; ja['310600'] = 'Akesu'; ja['310700'] = 'Hami'; ja['310800'] = 'Shihezi'; ja['310900'] = 'Alaer'; ja['311000'] = 'Wujiaqu'; ja['311100'] = 'Tumushuke'; ja['311200'] = 'Changji'; ja['311300'] = 'Aletai'; ja['311400'] = 'Tulufan'; ja['311500'] = 'Tacheng'; ja['311600'] = 'Hetian'; ja['311700'] = 'Kezilesukeerkezi'; ja['311800'] = 'Bayinguoleng'; ja['311900'] = 'Boertala';
        ja['320000'] = 'Qinghai'; ja['320200'] = 'Xining'; ja['320300'] = 'Haidong'; ja['320400'] = 'Haixi'; ja['320500'] = 'Haibei'; ja['320600'] = 'Huangnan'; ja['320700'] = 'Hainan'; ja['320800'] = 'Guoluo'; ja['320900'] = 'Yushu';
        ja['330000'] = 'Hongkong';
        ja['340000'] = 'Macao';
        ja['350000'] = 'Taiwan';
        ja['360000'] = 'Overseas';

    }
    else {
        var ja = [];
        ja['010000'] = '北京'; ja['010100'] = '东城区'; ja['010200'] = '西城区'; ja['010300'] = '崇文区'; ja['010400'] = '宣武区'; ja['010500'] = '朝阳区'; ja['010600'] = '丰台区'; ja['010700'] = '石景山区'; ja['010800'] = '海淀区'; ja['010900'] = '门头沟区'; ja['011000'] = '房山区'; ja['011100'] = '通州区'; ja['011200'] = '顺义区'; ja['011300'] = '昌平区'; ja['011400'] = '大兴区'; ja['011500'] = '怀柔区'; ja['011600'] = '平谷区'; ja['011700'] = '密云县'; ja['011800'] = '延庆县';
        ja['020000'] = '上海'; ja['020100'] = '黄浦区'; ja['020200'] = '卢湾区'; ja['020300'] = '徐汇区'; ja['020400'] = '长宁区'; ja['020500'] = '静安区'; ja['020600'] = '普陀区'; ja['020700'] = '闸北区'; ja['020800'] = '虹口区'; ja['020900'] = '杨浦区'; ja['021000'] = '浦东新区'; ja['021100'] = '闵行区'; ja['021200'] = '宝山区'; ja['021300'] = '嘉定区'; ja['021400'] = '金山区'; ja['021500'] = '松江区'; ja['021600'] = '青浦区'; ja['021800'] = '奉贤区'; ja['021900'] = '崇明县';
        ja['030000'] = '广东省'; ja['030200'] = '广州'; ja['030201'] = '越秀区'; ja['030202'] = '荔湾区'; ja['030203'] = '海珠区'; ja['030204'] = '天河区'; ja['030205'] = '白云区'; ja['030206'] = '黄埔区'; ja['030207'] = '番禺区'; ja['030208'] = '花都区'; ja['030209'] = '南沙区'; ja['030210'] = '萝岗区'; ja['030211'] = '增城'; ja['030212'] = '从化'; ja['030300'] = '惠州'; ja['030400'] = '汕头'; ja['030500'] = '珠海'; ja['030501'] = '香洲区'; ja['030502'] = '斗门区'; ja['030503'] = '金湾区'; ja['030504'] = '横琴新区'; ja['030505'] = '高栏港经济区'; ja['030506'] = '珠海高新区'; ja['030507'] = '珠海保税区'; ja['030508'] = '万山海洋开发试验区'; ja['030600'] = '佛山'; ja['030601'] = '禅城区'; ja['030602'] = '顺德区'; ja['030603'] = '南海区'; ja['030604'] = '三水区'; ja['030605'] = '高明区'; ja['030700'] = '中山'; ja['030800'] = '东莞'; ja['030801'] = '莞城区'; ja['030802'] = '南城区'; ja['030803'] = '东城区'; ja['030804'] = '万江区'; ja['030805'] = '石碣镇'; ja['030806'] = '石龙镇'; ja['030807'] = '茶山镇'; ja['030808'] = '石排镇'; ja['030809'] = '企石镇'; ja['030810'] = '横沥镇'; ja['030811'] = '桥头镇'; ja['030812'] = '谢岗镇'; ja['030813'] = '东坑镇'; ja['030814'] = '常平镇'; ja['030815'] = '寮步镇'; ja['030816'] = '大朗镇'; ja['030817'] = '麻涌镇'; ja['030818'] = '中堂镇'; ja['030819'] = '高埗镇'; ja['030820'] = '樟木头镇'; ja['030821'] = '大岭山镇'; ja['030822'] = '望牛墩镇'; ja['030823'] = '黄江镇'; ja['030824'] = '洪梅镇'; ja['030825'] = '清溪镇'; ja['030826'] = '沙田镇'; ja['030827'] = '道滘镇'; ja['030828'] = '塘厦镇'; ja['030829'] = '虎门镇'; ja['030830'] = '厚街镇'; ja['030831'] = '凤岗镇'; ja['030832'] = '长安镇'; ja['030833'] = '松山湖区'; ja['031400'] = '韶关'; ja['031500'] = '江门'; ja['031700'] = '湛江'; ja['031800'] = '肇庆'; ja['031900'] = '清远'; ja['032000'] = '潮州'; ja['032100'] = '河源'; ja['032200'] = '揭阳'; ja['032300'] = '茂名'; ja['032400'] = '汕尾'; ja['032600'] = '梅州'; ja['032700'] = '开平'; ja['032800'] = '阳江'; ja['032900'] = '云浮';
        ja['040000'] = '深圳'; ja['040100'] = '福田区'; ja['040200'] = '罗湖区'; ja['040300'] = '南山区'; ja['040400'] = '盐田区'; ja['040500'] = '宝安区'; ja['040600'] = '龙岗区'; ja['040700'] = '光明新区'; ja['040800'] = '坪山新区'; ja['040900'] = '大鹏新区'; ja['041000'] = '龙华新区';
        ja['050000'] = '天津'; ja['050100'] = '和平区'; ja['050200'] = '河东区'; ja['050300'] = '河西区'; ja['050400'] = '南开区'; ja['050500'] = '河北区'; ja['050600'] = '红桥区'; ja['050700'] = '东丽区'; ja['050800'] = '西青区'; ja['050900'] = '津南区'; ja['051000'] = '北辰区'; ja['051100'] = '武清区'; ja['051200'] = '宝坻区'; ja['051300'] = '滨海新区'; ja['051400'] = '宁河县'; ja['051500'] = '静海县'; ja['051600'] = '蓟县';
        ja['060000'] = '重庆'; ja['060100'] = '渝中区'; ja['060200'] = '大渡口区'; ja['060300'] = '江北区'; ja['060400'] = '沙坪坝区'; ja['060600'] = '合川区'; ja['060700'] = '渝北区'; ja['060800'] = '永川区'; ja['060900'] = '巴南区'; ja['061000'] = '南川区'; ja['061100'] = '九龙坡区'; ja['061200'] = '万州区'; ja['061300'] = '涪陵区'; ja['061400'] = '黔江区'; ja['061500'] = '南岸区'; ja['061600'] = '北碚区'; ja['061700'] = '长寿区'; ja['061900'] = '江津区'; ja['062000'] = '綦江区'; ja['062100'] = '潼南县'; ja['062200'] = '铜梁县'; ja['062300'] = '大足区'; ja['062400'] = '荣昌县'; ja['062500'] = '璧山县'; ja['062600'] = '垫江县'; ja['062700'] = '丰都县'; ja['062800'] = '忠县'; ja['062900'] = '石柱县'; ja['063000'] = '城口县'; ja['063100'] = '彭水县'; ja['063200'] = '梁平县'; ja['063300'] = '酉阳县'; ja['063400'] = '开县'; ja['063500'] = '秀山县'; ja['063600'] = '巫溪县'; ja['063700'] = '巫山县'; ja['063800'] = '奉节县'; ja['063900'] = '武隆县'; ja['064000'] = '云阳县';
        ja['070000'] = '江苏省'; ja['070200'] = '南京'; ja['070201'] = '玄武区'; ja['070202'] = '白下区'; ja['070203'] = '秦淮区'; ja['070204'] = '建邺区'; ja['070205'] = '鼓楼区'; ja['070206'] = '下关区'; ja['070207'] = '浦口区'; ja['070208'] = '六合区'; ja['070209'] = '栖霞区'; ja['070210'] = '雨花台区'; ja['070211'] = '江宁区'; ja['070212'] = '溧水区'; ja['070213'] = '高淳区'; ja['070300'] = '苏州'; ja['070301'] = '姑苏区'; ja['070302'] = '虎丘区'; ja['070303'] = '吴中区'; ja['070304'] = '相城区'; ja['070305'] = '吴江区'; ja['070306'] = '工业园区'; ja['070307'] = '高新区'; ja['070400'] = '无锡'; ja['070401'] = '崇安区'; ja['070402'] = '南长区'; ja['070403'] = '北塘区'; ja['070404'] = '滨湖区'; ja['070405'] = '无锡新区'; ja['070406'] = '惠山区'; ja['070407'] = '锡山区'; ja['070408'] = '宜兴市'; ja['070409'] = '江阴市'; ja['070500'] = '常州'; ja['070501'] = '天宁区'; ja['070502'] = '钟楼区'; ja['070503'] = '戚墅堰区'; ja['070504'] = '新北区'; ja['070505'] = '武进区'; ja['070506'] = '金坛市'; ja['070507'] = '溧阳市'; ja['070600'] = '昆山'; ja['070700'] = '常熟'; ja['070800'] = '扬州'; ja['070900'] = '南通'; ja['071000'] = '镇江'; ja['071100'] = '徐州'; ja['071200'] = '连云港'; ja['071300'] = '盐城'; ja['071400'] = '张家港'; ja['071600'] = '太仓'; ja['071800'] = '泰州'; ja['071900'] = '淮安'; ja['072000'] = '宿迁'; ja['072100'] = '丹阳'; ja['072300'] = '泰兴'; ja['072500'] = '靖江'; // delete by linsendu 072400，07150020140713 移至无锡分区内，072200移至常州分区内
        ja['080000'] = '浙江省'; ja['080200'] = '杭州'; ja['080201'] = '拱墅区'; ja['080202'] = '上城区'; ja['080203'] = '下城区'; ja['080204'] = '江干区'; ja['080205'] = '西湖区'; ja['080206'] = '滨江区'; ja['080207'] = '余杭区'; ja['080208'] = '萧山区'; ja['080209'] = '临安市'; ja['080210'] = '富阳市'; ja['080211'] = '建德市'; ja['080212'] = '桐庐县'; ja['080213'] = '淳安县'; ja['080300'] = '宁波'; ja['080301'] = '海曙区'; ja['080302'] = '江东区'; ja['080303'] = '江北区'; ja['080304'] = '北仑区'; ja['080305'] = '镇海区'; ja['080306'] = '鄞州区'; ja['080307'] = '慈溪市'; ja['080308'] = '余姚市'; ja['080309'] = '奉化市'; ja['080310'] = '宁海县'; ja['080311'] = '象山县'; ja['080312'] = '高新区'; ja['080400'] = '温州'; ja['080500'] = '绍兴'; ja['080600'] = '金华'; ja['080700'] = '嘉兴'; ja['080800'] = '台州'; ja['080900'] = '湖州'; ja['081000'] = '丽水'; ja['081100'] = '舟山'; ja['081200'] = '衢州'; ja['081400'] = '义乌'; ja['081600'] = '海宁';
        ja['090000'] = '四川省'; ja['090200'] = '成都'; ja['090201'] = '青羊区'; ja['090202'] = '锦江区'; ja['090203'] = '金牛区'; ja['090204'] = '武侯区'; ja['090205'] = '成华区'; ja['090206'] = '龙泉驿区'; ja['090207'] = '青白江区'; ja['090208'] = '新都区'; ja['090209'] = '温江区'; ja['090210'] = '都江堰市'; ja['090211'] = '彭州市'; ja['090212'] = '邛崃市'; ja['090213'] = '崇州市'; ja['090214'] = '金堂县'; ja['090215'] = '双流县'; ja['090216'] = '郫县'; ja['090217'] = '大邑县'; ja['090218'] = '蒲江县'; ja['090219'] = '新津县'; ja['090220'] = '高新区'; ja['090300'] = '绵阳'; ja['090400'] = '乐山'; ja['090500'] = '泸州'; ja['090600'] = '德阳'; ja['090700'] = '宜宾'; ja['090800'] = '自贡'; ja['090900'] = '内江'; ja['091000'] = '攀枝花'; ja['091100'] = '南充'; ja['091200'] = '眉山'; ja['091300'] = '广安'; ja['091400'] = '资阳'; ja['091500'] = '遂宁'; ja['091600'] = '广元'; ja['091700'] = '达州'; ja['091800'] = '雅安'; ja['091900'] = '西昌'; ja['092000'] = '巴中'; ja['092100'] = '甘孜'; ja['092200'] = '阿坝'; ja['092300'] = '凉山';
        ja['100000'] = '海南省'; ja['100200'] = '海口'; ja['100300'] = '三亚'; ja['100400'] = '洋浦经济开发区'; ja['100500'] = '文昌'; ja['100600'] = '琼海'; ja['100700'] = '万宁'; ja['100800'] = '儋州'; ja['100900'] = '东方'; ja['101000'] = '五指山'; ja['101100'] = '定安'; ja['101200'] = '屯昌'; ja['101300'] = '澄迈'; ja['101400'] = '临高'; ja['101500'] = '三沙'; ja['101600'] = '琼中'; ja['101700'] = '保亭'; ja['101800'] = '白沙'; ja['101900'] = '昌江'; ja['102000'] = '乐东'; ja['102100'] = '陵水';
        ja['110000'] = '福建省'; ja['110200'] = '福州'; ja['110201'] = '鼓楼区'; ja['110202'] = '台江区'; ja['110203'] = '仓山区'; ja['110204'] = '马尾区'; ja['110205'] = '晋安区'; ja['110206'] = '闽侯县'; ja['110207'] = '连江县'; ja['110208'] = '罗源县'; ja['110209'] = '闽清县'; ja['110210'] = '永泰县'; ja['110211'] = '平潭县'; ja['110212'] = '福清市'; ja['110213'] = '长乐市'; ja['110300'] = '厦门'; ja['110400'] = '泉州'; ja['110500'] = '漳州'; ja['110600'] = '莆田'; ja['110700'] = '三明'; ja['110800'] = '南平'; ja['110900'] = '宁德'; ja['111000'] = '龙岩';
        ja['120000'] = '山东省'; ja['120200'] = '济南'; ja['120201'] = '历下区'; ja['120202'] = '市中区'; ja['120203'] = '槐荫区'; ja['120204'] = '天桥区'; ja['120205'] = '历城区'; ja['120206'] = '长清区'; ja['120207'] = '平阴县'; ja['120208'] = '济阳县'; ja['120209'] = '商河县'; ja['120210'] = '章丘市'; ja['120211'] = '高新区'; ja['120300'] = '青岛'; ja['120301'] = '市南区'; ja['120302'] = '市北区'; ja['120303'] = '黄岛区'; ja['120304'] = '崂山区'; ja['120305'] = '城阳区'; ja['120306'] = '李沧区'; ja['120307'] = '胶州市'; ja['120308'] = '即墨市'; ja['120309'] = '平度市'; ja['120310'] = '莱西市'; ja['120400'] = '烟台'; ja['120500'] = '潍坊'; ja['120600'] = '威海'; ja['120700'] = '淄博'; ja['120800'] = '临沂'; ja['120900'] = '济宁'; ja['121000'] = '东营'; ja['121100'] = '泰安'; ja['121200'] = '日照'; ja['121300'] = '德州'; ja['121400'] = '菏泽'; ja['121500'] = '滨州'; ja['121600'] = '枣庄'; ja['121700'] = '聊城'; ja['121800'] = '莱芜';
        ja['130000'] = '江西省'; ja['130200'] = '南昌'; ja['130201'] = '东湖区'; ja['130202'] = '西湖区'; ja['130203'] = '青云谱区'; ja['130204'] = '湾里区'; ja['130205'] = '青山湖区'; ja['130206'] = '南昌县'; ja['130207'] = '新建县'; ja['130208'] = '安义县'; ja['130209'] = '进贤县'; ja['130210'] = '红谷滩新区'; ja['130300'] = '九江'; ja['130400'] = '景德镇'; ja['130500'] = '萍乡'; ja['130600'] = '新余'; ja['130700'] = '鹰潭'; ja['130800'] = '赣州'; ja['130900'] = '吉安'; ja['131000'] = '宜春'; ja['131100'] = '抚州'; ja['131200'] = '上饶';
        ja['140000'] = '广西'; ja['140200'] = '南宁'; ja['140300'] = '桂林'; ja['140400'] = '柳州'; ja['140500'] = '北海'; ja['140600'] = '玉林'; ja['140700'] = '梧州'; ja['140800'] = '防城港'; ja['140900'] = '钦州'; ja['141000'] = '贵港'; ja['141100'] = '百色'; ja['141200'] = '河池'; ja['141300'] = '来宾'; ja['141400'] = '崇左'; ja['141500'] = '贺州';
        ja['150000'] = '安徽省'; ja['150200'] = '合肥'; ja['150201'] = '瑶海区'; ja['150202'] = '庐阳区'; ja['150203'] = '蜀山区'; ja['150204'] = '包河区'; ja['150205'] = '经开区'; ja['150206'] = '滨湖新区'; ja['150207'] = '新站区'; ja['150208'] = '高新区'; ja['150209'] = '政务区'; ja['150210'] = '北城新区'; ja['150211'] = '巢湖市'; ja['150212'] = '长丰县'; ja['150213'] = '肥东县'; ja['150214'] = '肥西县'; ja['150215'] = '庐江县'; ja['150300'] = '芜湖'; ja['150400'] = '安庆'; ja['150500'] = '马鞍山'; ja['150600'] = '蚌埠'; ja['150700'] = '阜阳'; ja['150800'] = '铜陵'; ja['150900'] = '滁州'; ja['151000'] = '黄山'; ja['151100'] = '淮南'; ja['151200'] = '六安'; ja['151400'] = '宣城'; ja['151500'] = '池州'; ja['151600'] = '宿州'; ja['151700'] = '淮北'; ja['151800'] = '亳州'; // delete by linsendu 151300移至合肥分区内
        ja['160000'] = '河北省'; ja['160200'] = '石家庄'; ja['160300'] = '廊坊'; ja['160400'] = '保定'; ja['160500'] = '唐山'; ja['160600'] = '秦皇岛'; ja['160700'] = '邯郸'; ja['160800'] = '沧州'; ja['160900'] = '张家口'; ja['161000'] = '承德'; ja['161100'] = '邢台'; ja['161200'] = '衡水'; ja['161300'] = '燕郊开发区';
        ja['170000'] = '河南省'; ja['170200'] = '郑州'; ja['170201'] = '中原区'; ja['170202'] = '二七区'; ja['170203'] = '管城回族区'; ja['170204'] = '金水区'; ja['170205'] = '上街区'; ja['170206'] = '惠济区'; ja['170207'] = '中牟县'; ja['170208'] = '巩义市'; ja['170209'] = '荥阳市'; ja['170210'] = '新密市'; ja['170211'] = '新郑市'; ja['170212'] = '登封市'; ja['170213'] = '郑东新区'; ja['170214'] = '高新区'; ja['170215'] = '经开区'; ja['170300'] = '洛阳'; ja['170400'] = '开封'; ja['170500'] = '焦作'; ja['170600'] = '南阳'; ja['170700'] = '新乡'; ja['170800'] = '周口'; ja['170900'] = '安阳'; ja['171000'] = '平顶山'; ja['171100'] = '许昌'; ja['171200'] = '信阳'; ja['171300'] = '商丘'; ja['171400'] = '驻马店'; ja['171500'] = '漯河'; ja['171600'] = '濮阳'; ja['171700'] = '鹤壁'; ja['171800'] = '三门峡'; ja['171900'] = '济源'; ja['172000'] = '邓州';
        ja['180000'] = '湖北省'; ja['180200'] = '武汉'; ja['180201'] = '江岸区'; ja['180202'] = '江汉区'; ja['180203'] = '硚口区'; ja['180204'] = '汉阳区'; ja['180205'] = '武昌区'; ja['180206'] = '青山区'; ja['180207'] = '洪山区'; ja['180208'] = '东西湖区'; ja['180209'] = '汉南区'; ja['180210'] = '蔡甸区'; ja['180211'] = '江夏区'; ja['180212'] = '黄陂区'; ja['180213'] = '新洲区'; ja['180300'] = '宜昌'; ja['180400'] = '黄石'; ja['180500'] = '襄阳'; ja['180600'] = '十堰'; ja['180700'] = '荆州'; ja['180800'] = '荆门'; ja['180900'] = '孝感'; ja['181000'] = '鄂州'; ja['181100'] = '黄冈'; ja['181200'] = '随州'; ja['181300'] = '咸宁'; ja['181400'] = '仙桃'; ja['181500'] = '潜江'; ja['181600'] = '天门'; ja['181700'] = '神农架'; ja['181800'] = '恩施';
        ja['190000'] = '湖南省'; ja['190200'] = '长沙'; ja['190201'] = '芙蓉区'; ja['190202'] = '天心区'; ja['190203'] = '岳麓区'; ja['190204'] = '开福区'; ja['190205'] = '雨花区'; ja['190206'] = '望城区'; ja['190207'] = '长沙县'; ja['190208'] = '宁乡县'; ja['190209'] = '浏阳市'; ja['190300'] = '株洲'; ja['190400'] = '湘潭'; ja['190500'] = '衡阳'; ja['190600'] = '岳阳'; ja['190700'] = '常德'; ja['190800'] = '益阳'; ja['190900'] = '郴州'; ja['191000'] = '邵阳'; ja['191100'] = '怀化'; ja['191200'] = '娄底'; ja['191300'] = '永州'; ja['191400'] = '张家界'; ja['191500'] = '湘西';
        ja['200000'] = '陕西省'; ja['200200'] = '西安'; ja['200201'] = '莲湖区'; ja['200202'] = '新城区'; ja['200203'] = '碑林区'; ja['200204'] = '灞桥区'; ja['200205'] = '未央区'; ja['200206'] = '雁塔区'; ja['200207'] = '阎良区'; ja['200208'] = '临潼区'; ja['200209'] = '长安区'; ja['200210'] = '蓝田县'; ja['200211'] = '周至县'; ja['200212'] = '户县'; ja['200213'] = '高陵县'; ja['200214'] = '高新技术产业开发区'; ja['200215'] = '经济技术开发区'; ja['200216'] = '曲江文化新区'; ja['200217'] = '浐灞生态区'; ja['200218'] = '国家民用航天产业基地'; ja['200219'] = '西咸新区'; ja['200300'] = '咸阳'; ja['200400'] = '宝鸡'; ja['200500'] = '铜川'; ja['200600'] = '延安'; ja['200700'] = '渭南'; ja['200800'] = '榆林'; ja['200900'] = '汉中'; ja['201000'] = '安康'; ja['201100'] = '商洛'; ja['201200'] = '杨凌';
        ja['210000'] = '山西省'; ja['210200'] = '太原'; ja['210300'] = '运城'; ja['210400'] = '大同'; ja['210500'] = '临汾'; ja['210600'] = '长治'; ja['210700'] = '晋城'; ja['210800'] = '阳泉'; ja['210900'] = '朔州'; ja['211000'] = '晋中'; ja['211100'] = '忻州'; ja['211200'] = '吕梁';
        ja['220000'] = '黑龙江省'; ja['220200'] = '哈尔滨'; ja['220201'] = '道里区'; ja['220202'] = '南岗区'; ja['220203'] = '道外区'; ja['220204'] = '平房区'; ja['220205'] = '松北区'; ja['220206'] = '香坊区'; ja['220207'] = '呼兰区'; ja['220208'] = '阿城区'; ja['220209'] = '依兰县'; ja['220210'] = '方正县'; ja['220211'] = '宾县'; ja['220212'] = '巴彦县'; ja['220213'] = '木兰县'; ja['220214'] = '通河县'; ja['220215'] = '延寿县'; ja['220216'] = '双城市'; ja['220217'] = '尚志市'; ja['220218'] = '五常市'; ja['220300'] = '伊春'; ja['220400'] = '绥化'; ja['220500'] = '大庆'; ja['220600'] = '齐齐哈尔'; ja['220700'] = '牡丹江'; ja['220800'] = '佳木斯'; ja['220900'] = '鸡西'; ja['221000'] = '鹤岗'; ja['221100'] = '双鸭山'; ja['221200'] = '黑河'; ja['221300'] = '七台河'; ja['221400'] = '大兴安岭';
        ja['230000'] = '辽宁省'; ja['230200'] = '沈阳'; ja['230201'] = '大东区'; ja['230202'] = '东陵区（浑南新区）'; ja['230203'] = '康平县'; ja['230204'] = '和平区'; ja['230205'] = '皇姑区'; ja['230206'] = '沈北新区'; ja['230207'] = '沈河区'; ja['230208'] = '苏家屯区'; ja['230209'] = '铁西区'; ja['230210'] = '于洪区'; ja['230211'] = '法库县'; ja['230212'] = '辽中县'; ja['230213'] = '新民市'; ja['230300'] = '大连'; ja['230301'] = '西岗区'; ja['230302'] = '中山区'; ja['230303'] = '沙河口区'; ja['230304'] = '甘井子区'; ja['230305'] = '旅顺口区'; ja['230306'] = '金州区'; ja['230307'] = '瓦房店市'; ja['230308'] = '普兰店市'; ja['230309'] = '庄河市'; ja['230310'] = '长海县'; ja['230311'] = '开发区'; ja['230312'] = '高新园区'; ja['230313'] = '长兴岛'; ja['230314'] = '大连保税区'; ja['230400'] = '鞍山'; ja['230500'] = '营口'; ja['230600'] = '抚顺'; ja['230700'] = '锦州'; ja['230800'] = '丹东'; ja['230900'] = '葫芦岛'; ja['231000'] = '本溪'; ja['231100'] = '辽阳'; ja['231200'] = '铁岭'; ja['231300'] = '盘锦'; ja['231400'] = '朝阳'; ja['231500'] = '阜新';
        ja['240000'] = '吉林省'; ja['240200'] = '长春'; ja['240201'] = '朝阳区'; ja['240202'] = '南关区'; ja['240203'] = '宽城区'; ja['240204'] = '二道区'; ja['240205'] = '绿园区'; ja['240206'] = '双阳区'; ja['240207'] = '经济技术开发区'; ja['240208'] = '高新技术产业开发区'; ja['240209'] = '净月经济开发区'; ja['240210'] = '汽车产业开发区'; ja['240211'] = '榆树市'; ja['240212'] = '九台市'; ja['240213'] = '德惠市'; ja['240214'] = '农安县'; ja['240300'] = '吉林'; ja['240400'] = '辽源'; ja['240500'] = '通化'; ja['240600'] = '四平'; ja['240700'] = '松原'; ja['240800'] = '延吉'; ja['240900'] = '白山'; ja['241000'] = '白城'; ja['241100'] = '延边';
        ja['250000'] = '云南省'; ja['250200'] = '昆明'; ja['250201'] = '五华区'; ja['250202'] = '盘龙区'; ja['250203'] = '官渡区'; ja['250204'] = '西山区'; ja['250205'] = '东川区'; ja['250206'] = '呈贡区'; ja['250207'] = '晋宁县'; ja['250208'] = '富民县'; ja['250209'] = '宜良县'; ja['250210'] = '石林彝族自治县'; ja['250211'] = '嵩明县'; ja['250212'] = '禄劝县'; ja['250213'] = '寻甸县'; ja['250214'] = '安宁市'; ja['250300'] = '曲靖'; ja['250400'] = '玉溪'; ja['250500'] = '大理'; ja['250600'] = '丽江'; ja['251000'] = '红河州'; ja['251100'] = '普洱'; ja['251200'] = '保山'; ja['251300'] = '昭通'; ja['251400'] = '文山'; ja['251500'] = '西双版纳'; ja['251600'] = '德宏'; ja['251700'] = '楚雄'; ja['251800'] = '临沧'; ja['251900'] = '怒江'; ja['252000'] = '迪庆';
        ja['260000'] = '贵州省'; ja['260200'] = '贵阳'; ja['260300'] = '遵义'; ja['260400'] = '六盘水'; ja['260500'] = '安顺'; ja['260600'] = '铜仁'; ja['260700'] = '毕节'; ja['260800'] = '黔西南'; ja['260900'] = '黔东南'; ja['261000'] = '黔南';
        ja['270000'] = '甘肃省'; ja['270200'] = '兰州'; ja['270300'] = '金昌'; ja['270400'] = '嘉峪关'; ja['270500'] = '酒泉'; ja['270600'] = '天水'; ja['270700'] = '武威'; ja['270800'] = '白银'; ja['270900'] = '张掖'; ja['271000'] = '平凉'; ja['271100'] = '定西'; ja['271200'] = '陇南'; ja['271300'] = '庆阳'; ja['271400'] = '临夏'; ja['271500'] = '甘南';
        ja['280000'] = '内蒙古'; ja['280200'] = '呼和浩特'; ja['280300'] = '赤峰'; ja['280400'] = '包头'; ja['280700'] = '通辽'; ja['280800'] = '鄂尔多斯'; ja['280900'] = '巴彦淖尔'; ja['281000'] = '乌海'; ja['281100'] = '呼伦贝尔'; ja['281200'] = '乌兰察布'; ja['281300'] = '兴安盟'; ja['281400'] = '锡林郭勒盟'; ja['281500'] = '阿拉善盟';
        ja['290000'] = '宁夏'; ja['290200'] = '银川'; ja['290300'] = '吴忠'; ja['290400'] = '中卫'; ja['290500'] = '石嘴山'; ja['290600'] = '固原';
        ja['300000'] = '西藏'; ja['300200'] = '拉萨'; ja['300300'] = '日喀则'; ja['300400'] = '林芝'; ja['300500'] = '山南'; ja['300600'] = '昌都'; ja['300700'] = '那曲'; ja['300800'] = '阿里';
        ja['310000'] = '新疆'; ja['310200'] = '乌鲁木齐'; ja['310300'] = '克拉玛依'; ja['310400'] = '喀什地区'; ja['310500'] = '伊犁';
        ja['310600'] = '阿克苏'; ja['310700'] = '哈密'; ja['310800'] = '石河子'; ja['310900'] = '阿拉尔'; ja['311000'] = '五家渠'; ja['311100'] = '图木舒克'; ja['311200'] = '昌吉'; ja['311300'] = '阿勒泰'; ja['311400'] = '吐鲁番'; ja['311500'] = '塔城'; ja['311600'] = '和田'; ja['311700'] = '克孜勒苏柯尔克孜'; ja['311800'] = '巴音郭楞'; ja['311900'] = '博尔塔拉';
        ja['320000'] = '青海省'; ja['320200'] = '西宁'; ja['320300'] = '海东'; ja['320400'] = '海西'; ja['320500'] = '海北'; ja['320600'] = '黄南'; ja['320700'] = '海南'; ja['320800'] = '果洛'; ja['320900'] = '玉树';
        ja['330000'] = '香港';
        ja['340000'] = '澳门';
        ja['350000'] = '台湾';
        ja['360000'] = '国外';

    }
    //var containAreaCitys = '010000,020000,040000,030200,070200,180200,200200,080200,090200,050000,060000,070300,080300,120300,230200,230300,030800,070400,070500,110200,120200,150200,170200,190200,220200,240200,250200,030500,030600,130200';
    //var specialAreaCitys = ',010000,020000,050000,060000,';
    var containAreaCitys = "010000,020000,030200,040000,050000,060000,070200,180200,200200,080200,090200,070300,080300,120300,230200,230300,030800,110200,120200,150200,170200,190200,220200,240200,250200,070400,070500,030500,030600,130200";
    function getAreaIDs(idx) {
        switch (idx) {
            case '010000':
                return new Array('010000', '010100', '010200', '010300', '010400', '010500', '010600', '010700', '010800', '010900', '011000', '011100', '011200', '011300', '011400', '011500', '011600', '011700', '011800');
            case '020000':
                return new Array('020000', '020100', '020200', '020300', '020400', '020500', '020600', '020700', '020800', '020900', '021000', '021100', '021200', '021300', '021400', '021500', '021600', '021800', '021900');
            case '030000':
                return new Array('030000', '030200', '040000', '030300', '030400', '030500', '030600', '030700', '030800', '031400', '031500', '031700', '031800', '031900', '032000', '032100', '032200', '032300', '032400', '032600', '032700', '032800', '032900');
            case '030200':
                return new Array('030200', '030201', '030202', '030203', '030204', '030205', '030206', '030207', '030208', '030209', '030210', '030211', '030212');
            case '030500': // add by linsendu 20150603 新增珠海(030500)分区
                return new Array('030500', '030501', '030502', '030503', '030504', '030505', '030506', '030507', '030508');
            case '030600': // add by linsendu 20150603 新增佛山(030600)分区
                return new Array('030600', '030601', '030602', '030603', '030604', '030605');
            case '030800': // add by linsendu 20140713 新增东莞(030800)分区
                return new Array('030800', '030801', '030802', '030803', '030804', '030805', '030806', '030807', '030808', '030809', '030810', '030811', '030812', '030813', '030814', '030815', '030816', '030817', '030818', '030819', '030820', '030821', '030822', '030823', '030824', '030825', '030826', '030827', '030828', '030829', '030830', '030831', '030832', '030833');
            case '040000':   // modify by peggy 20130508 增加深圳分区
                return new Array('040000', '040100', '040200', '040300', '040400', '040500', '040600', '040700', '040800', '040900', '041000');
            case '050000':
                return new Array('050000', '050100', '050200', '050300', '050400', '050500', '050600', '050700', '050800', '050900', '051000', '051100', '051200', '051300', '051400', '051500', '051600');
            case '060000':
                return new Array('060000', '060100', '060200', '060300', '060400', '060600', '060700', '060800', '060900', '061000', '061100', '061200', '061300', '061400', '061500', '061600', '061700', '061900', '062000', '062100', '062200', '062300', '062400', '062500', '062600', '062700', '062800', '062900', '063000', '063100', '063200', '063300', '063400', '063500', '063600', '063700', '063800', '063900', '064000');
            case '070000':   // modify by peggy 20130508 删除'071700'
                return new Array('070000', '070200', '070300', '070400', '070500', '070600', '070700', '070800', '070900', '071000', '071100', '071200', '071300', '071400', '071600', '071800', '071900', '072000', '072100', '072300', '072500'); // delete by linsendu 072400，07150020140713 移至无锡分区内，072200移至常州分区内
            case '070200':
                return new Array('070200', '070201', '070202', '070203', '070204', '070205', '070206', '070207', '070208', '070209', '070210', '070211', '070212', '070213');
            case '070300':   // add by peggy 20130508 新增苏州(070300)分区
                return new Array('070300', '070301', '070302', '070303', '070304', '070305', '070306', '070307');
            case '070400': // add by linsendu 20140713 新增无锡(070400)分区
                return new Array('070400', '070401', '070402', '070403', '070404', '070405', '070406', '070407', '070408', '070409');
            case '070500': // add by linsendu 20140713 新增常州(070500)分区
                return new Array('070500', '070501', '070502', '070503', '070504', '070505', '070506', '070507');
            case '080000':   // modify by peggy 20130508 删除'081300','081500'
                return new Array('080000', '080200', '080300', '080400', '080500', '080600', '080700', '080800', '080900', '081000', '081100', '081200', '081400', '081600');
            case '080200':
                return new Array('080200', '080201', '080202', '080203', '080204', '080205', '080206', '080207', '080208', '080209', '080210', '080211', '080212', '080213');
            case '080300':   // add by peggy 20130508 新增宁波(080300)分区
                return new Array('080300', '080301', '080302', '080303', '080304', '080305', '080306', '080307', '080308', '080309', '080310', '080311', '080312');
            case '090000':
                return new Array('090000', '090200', '090300', '090400', '090500', '090600', '090700', '090800', '090900', '091000', '091100', '091200', '091300', '091400', '091500', '091600', '091700', '091800', '091900', '092000', '092100', '092200', '092300');
            case '090200':
                return new Array('090200', '090201', '090202', '090203', '090204', '090205', '090206', '090207', '090208', '090209', '090210', '090211', '090212', '090213', '090214', '090215', '090216', '090217', '090218', '090219', '090220');
            case '100000': // add by linsendu 20140713 海南新加城市
                return new Array('100000', '100200', '100300', '100400', '100500', '100600', '100700', '100800', '100900', '101000', '101100', '101200', '101300', '101400', '101500', '101600', '101700', '101800', '101900', '102000', '102100');
            case '110000':
                return new Array('110000', '110200', '110300', '110400', '110500', '110600', '110700', '110800', '110900', '111000');
            case '110200': // add by linsendu 20140713 新增福州(110200)分区
                return new Array('110200', '110201', '110202', '110203', '110204', '110205', '110206', '110207', '110208', '110209', '110210', '110211', '110212', '110213');
            case '120000':
                return new Array('120000', '120200', '120300', '120400', '120500', '120600', '120700', '120800', '120900', '121000', '121100', '121200', '121300', '121400', '121500', '121600', '121700', '121800');
            case '120200': // add by linsendu 20140713 新增济南(120200)分区
                return new Array('120200', '120201', '120202', '120203', '120204', '120205', '120206', '120207', '120208', '120209', '120210', '120211');
            case '120300':   // add by peggy 20130508 新增青岛(120300)分区
                return new Array('120300', '120301', '120302', '120303', '120304', '120305', '120306', '120307', '120308', '120309', '120310');
            case '130000':
                return new Array('130000', '130200', '130300', '130400', '130500', '130600', '130700', '130800', '130900', '131000', '131100', '131200');
            case '130200':   // add by peggy 20150603 新增南昌(130200)分区
                return new Array('130200', '130201', '130202', '130203', '130204', '130205', '130206', '130207', '130208', '130209', '130210');
            case '140000':
                return new Array('140000', '140200', '140300', '140400', '140500', '140600', '140700', '140800', '140900', '141000', '141100', '141200', '141300', '141400', '141500');
            case '150000':
                return new Array('150000', '150200', '150300', '150400', '150500', '150600', '150700', '150800', '150900', '151000', '151100', '151200', '151400', '151500', '151600', '151700', '151800'); // delete by linsendu 151300移至合肥分区内
            case '150200': // add by linsendu 20140713 新增合肥(150200)分区
                return new Array('150200', '150201', '150202', '150203', '150204', '150205', '150206', '150207', '150208', '150209', '150210', '150211', '150212', '150213', '150214', '150215');
            case '160000':   // add by peggy 20130508 新增'161300'
                return new Array('160000', '160200', '160300', '160400', '160500', '160600', '160700', '160800', '160900', '161000', '161100', '161200', '161300');
            case '170000': // add by linsendu 20140713 新增邓州
                return new Array('170000', '170200', '170300', '170400', '170500', '170600', '170700', '170800', '170900', '171000', '171100', '171200', '171300', '171400', '171500', '171600', '171700', '171800', '171900', '172000');
            case '170200': // add by linsendu 20140713 新增郑州(170200)分区，新增邓州
                return new Array('170200', '170201', '170202', '170203', '170204', '170205', '170206', '170207', '170208', '170209', '170210', '170211', '170212', '170213', '170214', '170215');
            case '180000':
                return new Array('180000', '180200', '180300', '180400', '180500', '180600', '180700', '180800', '180900', '181000', '181100', '181200', '181300', '181400', '181500', '181600', '181700', '181800');
            case '180200':
                return new Array('180200', '180201', '180202', '180203', '180204', '180205', '180206', '180207', '180208', '180209', '180210', '180211', '180212', '180213');
            case '190000':
                return new Array('190000', '190200', '190300', '190400', '190500', '190600', '190700', '190800', '190900', '191000', '191100', '191200', '191300', '191400', '191500');
            case '190200': // add by linsendu 20140713 新增长沙(190200)分区
                return new Array('190200', '190201', '190202', '190203', '190204', '190205', '190206', '190207', '190208', '190209');
            case '200000':
                return new Array('200000', '200200', '200300', '200400', '200500', '200600', '200700', '200800', '200900', '201000', '201100', '201200');
            case '200200': // add by linsendu 20140713 西安(200200)增加分区
                return new Array('200200', '200201', '200202', '200203', '200204', '200205', '200206', '200207', '200208', '200209', '200210', '200211', '200212', '200213', '200214', '200215', '200216', '200217', '200218', '200219');
            case '210000':
                return new Array('210000', '210200', '210300', '210400', '210500', '210600', '210700', '210800', '210900', '211000', '211100', '211200');
            case '220000':
                return new Array('220000', '220200', '220300', '220400', '220500', '220600', '220700', '220800', '220900', '221000', '221100', '221200', '221300', '221400');
            case '220200': // add by linsendu 20140713 新增哈尔滨(220200)分区
                return new Array('220200', '220201', '220202', '220203', '220204', '220205', '220206', '220207', '220208', '220209', '220210', '220211', '220212', '220213', '220214', '220215', '220216', '220217', '220218');
            case '230000':
                return new Array('230000', '230200', '230300', '230400', '230500', '230600', '230700', '230800', '230900', '231000', '231100', '231200', '231300', '231400', '231500');
            case '230200':   // add by peggy 20130508 新增沈阳(230200)分区
                return new Array('230200', '230201', '230202', '230203', '230204', '230205', '230206', '230207', '230208', '230209', '230210', '230211', '230212', '230213');
            case '230300':   // add by peggy 20130508 新增大连(230300)分区
                return new Array('230300', '230301', '230302', '230303', '230304', '230305', '230306', '230307', '230308', '230309', '230310', '230311', '230312', '230313', '230314');
            case '240000':
                return new Array('240000', '240200', '240300', '240400', '240500', '240600', '240700', '240800', '240900', '241000', '241100');
            case '240200': // add by linsendu 20140713 新增长春(240200)分区
                return new Array('240200', '240201', '240202', '240203', '240204', '240205', '240206', '240207', '240208', '240209', '240210', '240211', '240212', '240213', '240214');
            case '250000':
                return new Array('250000', '250200', '250300', '250400', '250500', '250600', '251000', '251100', '251200', '251300', '251400', '251500', '251600', '251700', '251800', '251900', '252000');
            case '250200': // add by linsendu 20140713 新增昆明(250200)分区
                return new Array('250200', '250201', '250202', '250203', '250204', '250205', '250206', '250207', '250208', '250209', '250210', '250211', '250212', '250213', '250214');
            case '260000':
                return new Array('260000', '260200', '260300', '260400', '260500', '260600', '260700', '260800', '260900', '261000');
            case '270000':
                return new Array('270000', '270200', '270300', '270400', '270500', '270600', '270700', '270800', '270900', '271000', '271100', '271200', '271300', '271400', '271500');
            case '280000':
                return new Array('280000', '280200', '280300', '280400', '280700', '280800', '280900', '281000', '281100', '281200', '281300', '281400', '281500');
            case '290000':
                return new Array('290000', '290200', '290300', '290400', '290500', '290600');
            case '300000':
                return new Array('300000', '300200', '300300', '300400', '300500', '300600', '300700', '300800');
            case '310000':
                return new Array('310000', '310200', '310300', '310400', '310500', '310600', '310700', '310800', '310900', '311000', '311100', '311200', '311300', '311400', '311500', '311600', '311700', '311800', '311900');
            case '320000':
                return new Array('320000', '320200', '320300', '320400', '320500', '320600', '320700', '320800', '320900');
            case '330000':
                return new Array('330000');
            case '340000':
                return new Array('340000');
            case '350000':
                return new Array('350000');
            case '360000':
                return new Array('360000');
            default:
                return new Array();
        }
    }
    //=========================================
    //===================变量=================
    if (lang == 'en') {
        var title = "Select{0}<label>（Maximum {1}）</label>";
        var comfirm = 'Comfirm';
        var cancel = "Cancel";
        var selectedarea = 'Selected {0}';
        var clearall = 'Clear All';
        var hotcity = 'Hot City';
        var allprovince = 'All Province';
    }
    else {

        var title = "选择{0}<label>（最多选{1}项）</label>";
        var comfirm = '确定';
        var cancel = "取消";
        var selectedarea = '已选{0}';
        var clearall = '清空';
        var hotcity = '热门城市';
        var allprovince = '所有省份';
    }

    //当前子层
    curSubLayerId = '';
    //当前层id
    curLayerid = '';
    //是否关闭子层
    closesub = 0;
    hasArea = []; //保存居住地
    hasHuKou = []; //保存户口
    areaArray = []; //保存显示隐藏控件
    var isclick = 0;
    //===================方法======================
    function isPartitionCity(areaCode) {//是否是分区城市
        return (',' + containAreaCitys + ',').indexOf(',' + areaCode + ',') > -1;
    }
    function isPartitionCode(areaCode) {//是否是城市区属，传入010100，返回ture，010000返回false    
        var t1 = areaCode.substring(0, 2);
        var t2 = areaCode.substring(0, 4);
        return (!isPartitionCity(areaCode) && (isPartitionCity(t1 + '0000') || isPartitionCity(t2 + '00')));
    }
    function getPartitionCode(areaCode) {//如果是城市区属，返回区属的城市code否则返回空，传入010100，返回010000，010000返回""    
        var t1 = areaCode.substring(0, 2);
        var t2 = areaCode.substring(0, 4);
        var pCode = "";
        if (!isPartitionCity(areaCode) && isPartitionCity(t1 + '0000')) {
            pCode = t1 + '0000';
        } else if (!isPartitionCity(areaCode) && isPartitionCity(t2 + '00')) {
            pCode = t2 + '00';
        }
        return pCode;
    }
    function isSpecialCity(areaCode) {//是否是直辖市010000是，010100,040000不是
        return specialAreaCitys.indexOf(',' + areaCode + ',') > -1;
    }

    //=====================

    return {
        //

        //鼠标事件onmouseover=\"resume_areaLayer.keepSubLayer();\" onmouseout=\"resume_areaLayer.closedSubLayer();\" 
        eventsMap: { "mouseover": function () { resume_areaLayer.keepSubLayer(); }, "mouseout": function () { resume_areaLayer.closedSubLayer(); } },
        /******************************************遮罩层*******************************************/
        //创建遮罩层
        buildGlobalLayer: function () {
            //定义记住BODY滚动高度的全局变量
            if (browser.msie && browser.version < '7.0' && !$_("globalIfr")) {//IE 7.0以下版本需加iframe
                var gIfr = $('<iframe></iframe>');
                gIfr.attr({ 'id': 'globalIfr' });
                gIfr.css({ 'display': 'none', 'position': 'absolute', 'clear': 'both', 'z-index': '300', 'left': '0px', 'top': '0px', 'border': '0px #ffffff solid',
                    'width': '0px', 'height': '0px', 'filter': 'alpha(opacity=0)'
                });
                gIfr.bind('selectstart', function () { return false; });
                $(document.body).append(gIfr);
            }
            if (!$_("globalDiv")) {
                var gDiv = $('<div></div>');
                gDiv.attr({ 'id': 'globalDiv' });
                gDiv.css({ 'display': 'none', 'position': 'absolute', 'clear': 'both', 'z-index': '300', 'left': '0px', 'top': '0px', 'border': '0px #ffffff solid',
                    'width': '0px', 'height': '0px', 'background': '#000000', 'opacity': 50 / 100, 'filter': 'alpha(opacity=50)'
                });
                gDiv.bind('selectstart', function () { return false; });
                $(document.body).append(gDiv);
            }

        },
        //打开滤镜层
        openGlobalLayer: function () {
            var bw = ($(document).width() || $(document.body).width()) + 'px';
            var bh = ($(document).height() || $(document.body).height()) + 'px';
            if ($_('globalIfr')) {
                $('#globalIfr').css({ 'width': bw, 'height': bh, 'display': 'block' });

            }
            $('#globalDiv').css({ 'width': bw, 'height': bh, 'display': 'block' });

        },
        //关闭滤镜层
        closeGlobalLayer: function () {
            if ($_("globalIfr")) {
                $('#globalIfr').css({ 'width': '0px', 'height': '0px', 'display': 'none' });
            }
            $('#globalDiv').css({ 'width': '0px', 'height': '0px', 'display': 'none' });
        },
        /******************************************遮罩层***end********************************************/
        /******************************************居住地父层*******************************************/
        //创建居住地层
        buildjobLayer: function (ishukou, isindex) {
            //定义层需要的初始字串变量
            var layerId = "popupArea";
            areadiv = $('<div></div>');
            areadiv.attr({ 'id': layerId });
            areadiv.css({ 'visibility': 'hidden', 'position': 'absolute', 'clear': 'both', 'z-index': '1018', 'left': '0px', 'top': '0px', 'border': '0px #ffffff solid' });
            areadiv.html(resume_areaLayer.initJobArea(ishukou, isindex));
            $(document.body).append(areadiv);
        },
        //初始居住地数据
        initJobArea: function (ishukou, isindex) {
            //自定义确定事件
            var display = '';
            if (ishukou) {
                display = 'none';
            }
            var confirmClick = areaArray[ishukou].userClick ? "resume_areaLayer.comfirm(" + ishukou + "," + isindex + ");resume_areaLayer.closeLayer('popupArea');" + areaArray[ishukou].userClick : "resume_areaLayer.comfirm(" + ishukou + ");";
            var listyle = (lang == "E" ? "style='width:80px;'" : "");
            var titletmp = title.format((ishukou ? (lang == 'en' ? '&nbsp;HuKou' : '户口') : (lang == 'en' ? "&nbsp;Residency&nbsp;&nbsp; " : "居住地&nbsp;&nbsp;")), (ishukou ? "1" : config.limitNum));
            var selectedareatmp = selectedarea.format((ishukou ? (lang == 'en' ? '&nbsp;HuKou' : '户口') : (lang == 'en' ? "&nbsp;Residency&nbsp;&nbsp; " : "居住地 &nbsp;&nbsp;")));
            var nomoreselecttmp = nomoreselect.format((ishukou ? "1" : config.limitNum));
            if (config.isExpjobArea) titletmp = title.format((lang == 'en' ? '&nbsp;Expected Place' : '期望工作地'), config.limitNum),
            selectedareatmp = selectedarea.format((lang == 'en' ? '&nbsp;Job Area&nbsp;' : '工作地'));
            {//自定义标题部分
                if (config.custitle) titletmp = title.format(config.custitle, config.limitNum);
                if (config.cusselected) selectedareatmp = selectedarea.format(config.cusselected);
            }
            var htmlDiv = "";
            var expectArea = lang == 'en' ? "Include Expected Place" : "含期望工作地";
            var appendCheck = "&emsp;<label><input type=\"checkbox\" id=\"search_resarea_expected\" />" + expectArea + "</label>";
            htmlDiv += "<div id='rsm_parentarea_div' class=\"Common_panelBox Common_panel_select_location\">"
            htmlDiv += "<h2><p>" + titletmp + "</p> <a id=\"aconfirm\"  class=\"Common_panel_closebtn\"  onclick=\"" + confirmClick + "\">" + comfirm + "</a>"
            htmlDiv += " <a class=\"Common_panel_cancelbtn\"  onclick=\"resume_areaLayer.cancel(" + ishukou + "," + (areaArray[ishukou].userClick ? 0 : 1) + ");\">" + cancel + "</a>"
            htmlDiv += "</h2>"
            htmlDiv += "<div class=\"Common_titleBottom\" id='selected_area_div'>"
            htmlDiv += "<label class=\"Common_titlebot_th\" style=\"top:1px;\">" + selectedareatmp + "</label>";
            if ((!ishukou) && (isindex == 0)) {
                if (SearchResumeNew.isexpectjobarea == "1") {
                    appendCheck = "&emsp;<label><input type=\"checkbox\" id=\"search_resarea_expected\" checked=\"checked\" />" + expectArea + "</label>";
                    htmlDiv += appendCheck;
                }
                else
                    htmlDiv += appendCheck;
            }
            htmlDiv += "</div>"
            htmlDiv += "<div class=\"Common_provinceList\">"
            htmlDiv += "<h3>" + hotcity + "</h3>"
            htmlDiv += "<ul class=\"Common_clearfix\">"
            for (var i = 0; i < maincity.length; i++) {
                htmlDiv += (!ishukou ? "<li " + listyle + "><p><i class=\"icon12Add\"></i><a id=popuparea_" + maincity[i] + " href=\"javascript:void(0);\" onclick=\"resume_areaLayer.opensublayer(event,'" + maincity[i] + "',this," + ishukou + "," + isindex + ");\" class=\"haveChosen\">" + ja[maincity[i]] + "</a></p></li>"
            : "<li " + listyle + "><p><i class=\"icon12Add\"></i><a href=\"javascript:resume_areaLayer.selectarea('" + maincity[i] + "',0,1," + isindex + ");\" class=\"haveChosen\">" + ja[maincity[i]] + "</a></p></li>");
            }
            htmlDiv += "</ul></div><div class=\"Common_provinceList\">"
            htmlDiv += "<h3>" + allprovince + "</h3>"
            htmlDiv += "<ul class=\"Common_clearfix\">"
            for (var i = 0; i < allprov.length; i++) {
                htmlDiv += "<li " + listyle + "><p " + (allprov[i] == '220000' ? "style=width:74px;" : "") + "><i class=\"icon12Add\"></i><a id=popuparea_" + allprov[i] + " href=\"javascript:void(0);\"  onclick=\"resume_areaLayer.opensublayer(event,'" + allprov[i] + "',this," + ishukou + "," + isindex + ");\"  class=\"haveChosen\">" + ja[allprov[i]] + "</a></p></li>"
            }
            for (var i = 0; i < specialarea.length; i++) {
                htmlDiv += "<li " + listyle + "><p><i class=\"icon12Add\"></i><a href=\"javascript:resume_areaLayer.selectarea('" + specialarea[i] + "',0," + ishukou + "," + isindex + ");\" class=\"haveChosen\">" + ja[specialarea[i]] + "</a></p></li>"
            }
            htmlDiv += "</ul></div>";
            htmlDiv += "<div id=\"subarea_more3\" style=\" text-align:center; z-index: 1199; display:none; position: absolute;color: #B47377; background-color: #f2dedf;width: 100px;height: 30px;font-size: 14px;\"><label style=\"font-size: 14px;line-height: 30px;\">" + nomoreselecttmp + "</label></div>";
            htmlDiv += "</div>";
            return htmlDiv;
        },

        //打开居住地
        openLayer: function (layerId) {
            resume_areaLayer.openGlobalLayer(); //打开滤镜层
            var obj = $("#" + layerId);
            if (obj.css('visibility') == 'hidden') {
                resume_areaLayer.centerLayer(obj);
                obj.css('visibility', 'visible');
            }
        },
        //定位父层
        centerLayer: function (obj) {
            var ocw = obj[0].firstChild.clientWidth;
            var och = obj[0].firstChild.clientHeight;
            var bsl = document.body.scrollLeft || document.documentElement.scrollLeft;
            var bst = document.body.scrollTop || document.documentElement.scrollTop;
            var bcw = document.body.clientWidth || document.documentElement.clientWidth;
            var bch = $(window).height();
            var osl = bsl + Math.floor((bcw - ocw) / 2);
            osl = Math.max(bsl, osl);
            var ost = bst + Math.floor((bch - och) / 2);
            ost = Math.max(bst, ost);
            obj[0].style.left = osl + 'px';
            obj[0].style.top = ost + 'px';
        },
        /******************************************居住地父层***end****************************************/
        /******************************************居住地子层*******************************************/
        //打开子层
        opensublayer: function (e, parentarea, obj, ishukou, isindex) {
            $(obj).bind(resume_areaLayer.eventsMap);
            //layerId 层ID , id 子层ID数字部分
            var subLayerId = 'subarea_' + parentarea;
            if (subLayerId != curSubLayerId && $_(curSubLayerId)) {
                //resume_areaLayer.closeSubLayer(curSubLayerId);
            }
            if ($_(curLayerid)) {
                var subId = 'subarea_' + curLayerid.split('_')[1];
                !$_(subId) ? "" : $_(subId).unbind(resume_areaLayer.eventsMap);
                $_(curLayerid).unbind(resume_areaLayer.eventsMap);
            }
            if (!$_(subLayerId)) {
                resume_areaLayer.buildSubLayer(e, parentarea, ishukou, isindex);
            }
            e = e || window.event;
            var sobj = $_(subLayerId);
            sobj.bind(resume_areaLayer.eventsMap);
            sobj.bind('mouseout', function (e) {
                e = e || window.event;
                var x = e.clientX;
                var y = e.clientY;
                window.Mouse = { X: x || 0, Y: y || 0 };
            });
            resume_areaLayer.fallowMouse(e, sobj);
            $(sobj).css('visibility', 'visible');
            curSubLayerId = subLayerId;
            if (obj.id) curLayerid = obj.id;

        },
        //创建子层onmouseout=\"resume_areaLayer.closeSubLayer(this.id);\"onmouseover=\"resume_areaLayer.keepSubLayer();\" onmouseout=\"resume_areaLayer.closedSubLayer();\"
        buildSubLayer: function (e, parentarea, ishukou, isindex) {
            var subid = 'subarea_' + parentarea;
            var subarea = "<div id='" + subid + "'class=\"Common_subLayer\"  style=\"border: 0px; z-index: 1111; position: absolute; visibility: visible; top:20px; left: 750px; background-color:#f7f7f7; width:auto; color:#5191ce;border:1px solid #d7d7d7;\">";
            subarea += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" ><tbody><tr>";
            subarea += "<td collabel=\"3\" style=\"width: auto; padding-left:10px; font-weight: bold;\"><a href=\"javascript:resume_areaLayer.selectarea('" + parentarea + "',0," + ishukou + "," + isindex + ");\" >" + ja[parentarea] + "</a></td></tr>";
            var subareas = getAreaIDs(parentarea);
            var sublen = subareas.length;
            for (var i = 0; i < sublen - 1; i++) {
                if (i % 4 == 0) {
                    subarea += "<tr>";
                }
                //是省份&&市级下有区
                if (!ishukou && getAreaIDs(subareas[i + 1]).length > 0)
                    subarea += "<td style=\"width: auto;padding:3px 10px;\"><a href=\"javascript:void(0);\"  onclick=\"resume_areaLayer.opensublayer(event,'" + subareas[i + 1] + "',this," + ishukou + "," + isindex + ");\" >" + ja[subareas[i + 1]] + "</a></td>";
                else
                    subarea += "<td style=\"width: auto;padding:3px 10px;\"><a href=\"javascript:resume_areaLayer.selectarea('" + subareas[i + 1] + "',0," + ishukou + "," + isindex + ");\">" + ja[subareas[i + 1]] + "</a></td>";
                if (i % 4 == 3) {
                    subarea += '</tr>';
                }
            }
            subarea += "</tbody></table></div>";
            $(document.body).append(subarea);

        },
        //子层定位
        fallowMouse: function (e, obj) {
            var ex = e.clientX;
            var ey = e.clientY;
            var bl = document.body.scrollLeft || document.documentElement.scrollLeft;
            var bt = document.body.scrollTop || document.documentElement.scrollTop;
            var bw = document.body.clientWidth || document.documentElement.clientWidth;
            var bh = document.body.clientHeight || document.documentElement.clientHeight;
            var ow = $(obj).width(); //obj.clientWidth;
            var oh = $(obj).height(); //obj.clientHeight;
            var ol = ex + ow > bw ? ex + bl - ow : ex + bl;
            ol = Math.max(bl, ol);
            var ot = ey + oh > bh ? ey + bt - oh : ey + bt;
            ot = ot < bt ? bt + bh - oh : ot;
            ot = ot < bt ? bt : ot;
            $(obj).css({ 'left': ol + 'px', 'top': ot + 'px' });
        },
        //关闭子层
        closeSubLayer: function (subLayerId) {
            if ($_(subLayerId)) {
                // $_(subLayerId).css('visibility', "hidden");
                var subId = curSubLayerId.split('_')[1];
                //如果为省城市&&热门城市子层点开，子层不关闭
                var pare = subId.substring(0, 2) + "0000";    //父级
                {
                    //移除当前子层
                    $_(subLayerId).unbind(resume_areaLayer.eventsMap);
                    $_(subLayerId).remove();
                    //深圳特殊处理
                    if (subId == '040000') pare = '030000';
                    var pareId = "subarea_" + pare;

                    if ($_(pareId)) {
                        //判断可选个数
                        if (!isclick && hasArea.length <= 3) {
                            //为第二级弹层绑定事件

                            $_(pareId).bind(resume_areaLayer.eventsMap);
                            //$_("subarea_" + pare).remove();
                            curSubLayerId = pareId;
                            //如果移除弹层并且鼠标不停留在二级弹层
                            //关闭二级弹层
                            // 判断点击区域 隐藏/显示其他区域
                            var div = document.getElementById(curSubLayerId);
                            if (div != null) {
                                //e = e || window.event;
                                var x = Mouse.X; //e.clientX;
                                var y = Mouse.Y; // e.clientY;
                                var divx1 = div.offsetLeft;
                                var divy1 = div.offsetTop;
                                var divx2 = div.offsetLeft + div.offsetWidth;
                                var divy2 = div.offsetTop + div.offsetHeight;
                                if (x < divx1 || x > divx2 || y < divy1 || y > divy2) {
                                    //不再div内
                                    $_(curSubLayerId).unbind(resume_areaLayer.eventsMap);
                                    $_(curSubLayerId).remove(); //移除第二级弹层
                                    curSubLayerId = "";
                                    isclick = 0;

                                }
                            }
                        }
                        else if (isclick) {//并且为选择下一个
                            //如果选项超过限定值，第二级弹层解绑事件
                            $_(pareId).unbind(resume_areaLayer.eventsMap);
                            $_(pareId).remove(); //移除第二级弹层
                            curSubLayerId = "";
                            isclick = 0;
                        }
                    }
                    else {
                        curSubLayerId = '';
                    }
                }
            }
        },
        //保持子层不关闭
        keepSubLayer: function () {
            closesub = 0;
        },
        //移动关闭子层
        closedSubLayer: function () {
            closesub = 1;
            setTimeout(resume_areaLayer.isCloseSubLayer, 5);
        },
        isCloseSubLayer: function () {
            if (closesub && $_(curSubLayerId)) {
                resume_areaLayer.closeSubLayer(curSubLayerId);
            }
        },
        /******************************************居住地子层****end***************************************/

        //关闭层
        closeLayer: function (layerId) {
            if ($_(layerId)) {
                if ($_(curSubLayerId)) {
                    resume_areaLayer.closeSubLayer(curSubLayerId);
                }
                resume_areaLayer.closeGlobalLayer();
                $_(layerId).css('visibility', 'hidden');
                // recoverDocEvent();
                //curLayerId = '';
            }
        },
        /******************************************按钮操作*********************************************************/
        //确定按钮
        comfirm: function (ishukou, isindex) {
            var tmp = ishukou ? hasHuKou : hasArea;

            if (!areaArray[ishukou].userClick) {
                if (config.mode == 0) {
                    var len = tmp.length;
                    selectareaHtml = " <div class=\"Common_chick-unit\"><ul>";
                    for (var i = 0; i < len; i++) {
                        selectedtitle = getPartitionCode(tmp[i]) != "" ? ja[getPartitionCode(tmp[i])] + "-" + ja[tmp[i]] : ja[tmp[i]];
                        var selectVal = "";
                        if (EHR.getStrLength(selectedtitle) > 12)  //联想内容因宽度不够显示不全，用...表示
                        {
                            selectVal = EHR.getSubString(selectedtitle, 11);
                        }
                        else
                            selectVal = selectedtitle;
                        selectareaHtml += "<li title='" + selectedtitle + "'>" + selectVal + "<a href=\"javascript:void(0);\" onclick=\"resume_areaLayer.cancelSelect(this,'" + tmp[i] + "'," + ishukou + ",1);\"  class=\" Common_icon Common_icon_remove_block\"></a></li>";
                    }
                    selectareaHtml += "</ul></div>";
                    $('#' + areaArray[ishukou].showareaid).parent().children("div[class='Common_chick-unit']").remove();
                    $('#' + areaArray[ishukou].showareaid).before(selectareaHtml);
                    $('#' + areaArray[ishukou].showareaid).parent().removeClass('Common_onHere');
                    if (lang != "en") {
                        if (len > 0) {
                            //隐藏input不允许输入
                            $('#' + areaArray[ishukou].showareadiv).css('display', 'block');
                            $('#' + areaArray[ishukou].showareaid).css('display', 'none');
                        }
                        else {
                            $('#' + areaArray[ishukou].showareadiv).css('display', 'none');
                            $('#' + areaArray[ishukou].showareaid).css('display', 'block');
                        }
                    }
                }
                else {
                    resume_areaLayer.textvalBind(ishukou);
                }
            }
            resume_areaLayer.hidvalBind(ishukou);
            resume_areaLayer.closeLayer('popupArea');
            if ((!ishukou) && (isindex == 0)) {
                if ($("#search_resarea_expected").attr("checked"))
                    SearchResumeNew.isexpectjobarea = "1";
                else
                    SearchResumeNew.isexpectjobarea = "0";
            }
        },
        //取消按钮
        cancel: function (ishukou, isindexpage) {
            this.getHidAreaCode(ishukou);
            resume_areaLayer.closeLayer('popupArea');
            if (config.mode == "1") {
                return;
            }
            this.setSelectedCss(ishukou);
            //ishukou ? hasHuKou = [] : hasArea = [];
            if (isindexpage && $('#' + areaArray[ishukou].showareaid).parent().children("div[class='Common_chick-unit']").children('ul').children('li').length <= 0)
                $('#' + areaArray[ishukou].hidareaid).val('');
            if (!isindexpage && $('#' + areaArray[ishukou].showareaid).val() == '') $('#' + areaArray[ishukou].hidareaid).val('');
        },
        //选择居住地isinit代表是否为初始化，0代表初始化，1代表从弹层选择（从弹层选择直接关闭弹层，初始化则需打开弹层）
        selectarea: function (areacode, isinit, ishukou, isindex) {
            //resume_areaLayer.closedSubLayer();
            if (!isinit && ishukou)
                hasHuKou = [];
            if (!isinit && !ishukou && config.limitNum == 1)
                hasArea = [];
            var hasAreaTmp = ishukou ? hasHuKou : hasArea;
            var top = $('#rsm_parentarea_div').height() / 2;
            var left = $('#rsm_parentarea_div').width() / 2 - 100;
            if (!isinit)
                for (var i = 0; i < hasAreaTmp.length; i++)
                    if (hasAreaTmp[i] == areacode) return;
            if ((hasAreaTmp.length >= (ishukou ? 1 : config.limitNum)) && !isinit) {
                isclick = 1;
                resume_areaLayer.closedSubLayer();
                //最多3项提示
                $('#subarea_more3').css({ 'top': top + 'px', 'left': left + 'px' }).fadeIn("slow").delay(1000).fadeOut(1000, "linear");
                return;
            }
            titlearea = getPartitionCode(areacode) != "" ? ja[getPartitionCode(areacode)] + "-" + ja[areacode] : ja[areacode];
            areaDiv = "<a class=\"Common_region\" href=\"javascript:void(0);\"><b style=\"color:#fff; font-weight:normal\">" + titlearea + "</b><i onclick=\"resume_areaLayer.cancelSelect(this,'" + areacode + "'," + ishukou + ");\" class=\"Common_icon Common_icon_remove_white\"></i></a>";
            if (isindex)
                $('#selected_area_div').children(':last').after(areaDiv);
            else
                $('#selected_area_div').children(':last').before(areaDiv);
            if (!isinit) hasAreaTmp.push(areacode);
            if (ishukou && isinit == 0) {
                $("#aconfirm").click();
            }
            else if (!ishukou && isinit == 0 && config.limitNum == 1) {
                $(".Common_subLayer").remove();
                $("#aconfirm").click();
            }
        },
        //清空
        clearAll: function (obj, ishukou) {
            //yi选择清空
            if (!ishukou) hasArea = []; else hasHuKou = [];
            //移除样式
            $(obj).parent().children('a:not(:last)').remove();
        },
        //取消选择
        cancelSelect: function (obj, areaCode, ishukou, isdiv) {
            $(obj).parent().remove();

            tmp = ishukou ? hasHuKou : hasArea;
            tmp.removeArray(areaCode);
            if (tmp.length <= 0) {
                this.setSelectedCss(ishukou);
            }
            if (isdiv) resume_areaLayer.hidvalBind(ishukou);
        },
        //设置选择框样式
        setSelectedCss: function (ishukou) {
            if ($('#' + areaArray[ishukou].showareaid).parent().children("div[class='Common_chick-unit']")
                .children('ul').children('li').length <= 0) {
                $('#' + areaArray[ishukou].showareadiv).css('display', 'none');
                $('#' + areaArray[ishukou].showareaid).css('display', 'block');
            }
            $('#' + areaArray[ishukou].showareaid).parent().removeClass('Common_onHere');
            if (!ishukou) this.setCancelCss();
        },
        setCancelCss: function () {
            if (areaArray[0].userClick && areaArray[0].userClick != '') {
                var tmp = $('#' + areaArray[0].hidareaid).val();
                if (tmp.indexOf('|') < 0)
                    $('#' + areaArray[0].showareaid).val("");
                $('#' + areaArray[0].showareaid).parent().removeClass('Common_onHere');
            }
        },
        //隐藏域赋值
        hidvalBind: function (ishukou) {
            selectareahid = '';
            temp = ishukou ? hasHuKou : hasArea;
            len = temp.length;
            for (var i = 0; i < len; i++) {
                titlearea = (getPartitionCode(temp[i]) != "" ? ja[getPartitionCode(temp[i])] + "-" + ja[temp[i]] : ja[temp[i]]) + "|" + temp[i];
                if (i == len - 1) selectareahid += titlearea;
                else selectareahid += titlearea + "$";
            }
            $('#' + areaArray[ishukou].hidareaid).val(selectareahid);
        },
        textvalBind: function (ishukou) {
            var strValue = "";
            var temp = ishukou ? hasHuKou : hasArea;
            len = temp.length;
            for (var i = 0; i < len; i++) {
                if (temp[i] != "") {
                    strValue += getPartitionCode(temp[i]) != "" ? ja[getPartitionCode(temp[i])] + "-" + ja[temp[i]] + "+" : ja[temp[i]] + "+";
                }
            }
            if (strValue != "") {
                strValue = strValue.substring(0, strValue.length - 1);
            }
            $('#' + areaArray[config.ishukou].showareaid).attr("title", strValue);
            $('#' + areaArray[config.ishukou].showareaid).val(strValue);
        },
        /******************************************按钮操作****end*****************************************************/
        /******************************************初始化操作*********************************************************/
        //showid  用于显示地区id，hiddenid用户隐藏areacodeid,ispost,是否页面加载时绑定ishukou 是否为户口
        initAreaData: function (showid, hiddenid, isinit, ishukou, userclick, showDiv, isindex, option) {
            window.config = {
                ishukou: 0,                                              //是否户口
                limitNum: 3,                                          //最多能选择项数
                mode: 0                                     //1 代表赋值文本框 则不供给用户可以删除已选条件
            };
            if (ishukou == 1) {
                $.extend(config, { ishukou: 1, limitNum: 1 });
            }
            if (typeof (option) != "undefined") {
                $.extend(config, option);
            }
            var areaArrayTmp = { showareaid: showid, hidareaid: hiddenid };
            if (userclick) areaArrayTmp.userClick = userclick; //用户自定义事件
            if (showDiv) areaArrayTmp.showareadiv = showDiv;
            areaArray[ishukou] = areaArrayTmp;
            if (!isinit) {
                $('#' + areaArray[ishukou].showareaid).parent().addClass('Common_onHere');
                $("#popupArea").remove();
                resume_areaLayer.buildGlobalLayer();
                resume_areaLayer.buildjobLayer(ishukou, isindex);
                resume_areaLayer.openLayer('popupArea');
                var areabox = document.getElementById('popupArea');
                //弹框居中
                if (areabox) {
                    MoveToCenter(areabox);
                }
            }
            //            //初始化已选居住地
            this.getHidAreaCode(ishukou);
            var temp = ishukou ? hasHuKou : hasArea;
            for (var i = 0; i < temp.length; i++) {
                resume_areaLayer.selectarea(temp[i], (isinit ? 0 : 1), ishukou, isindex);
            }
        },
        //初始化变量
        getHidAreaCode: function (ishukou) {
            var hasSelectArea = $('#' + areaArray[ishukou].hidareaid).val();
            var temp = (ishukou ? hasHuKou = [] : hasArea = []);
            if (hasSelectArea && hasSelectArea != '') {

                hasSelecedtArea = hasSelectArea.split('$');
                for (var i = 0; i < hasSelecedtArea.length; i++) {
                    var tmpcode = hasSelecedtArea[i].split('|');
                    if ($.inArray(tmpcode[1], temp) < 0) {
                        temp.push(tmpcode[1]);
                    }
                }
            }
            //return temp;
        }
        /******************************************初始化操作**end*******************************************************/
    }
})(window);

//****************************Start  职能，行业，专业弹层***************************************************** //
(function () {
    if (window.EHRFunLayerNew) {
        alert("the object window.EHRFunLayerNew has been already used,it will be replace window.EHRFunLayerNew");
        window._EHRFunLayerNew = window.EHRFunLayerNew;
    }
    window.EHRFunLayerNew = function (param) {
        param = param instanceof Object ? param : {};
        param.data = ctFunType;
        EHRLayer.apply(this, [param]);
    } .$EHRExtends(EHRLayer);

    var pt = EHRFunLayerNew.prototype;

    //职能分类数据字典
    pt.funtypePare = [
		{ Chinese: '计算机/互联网/通信/电子', English: 'Computer, Internet, Telecom, Electronics', subIds: ['2400', '0100', '2500', '6100', '2600', '2700', '2800', '2900'] },
		{ Chinese: '销售/客服/技术支持', English: 'Sales, Customer Service, Technical Support', subIds: ['0200', '3000', '3100', '3200'] },
		{ Chinese: '会计/金融/银行/保险', English: 'Accounting, Finance, Banking, Insurance', subIds: ['0400', '3300', '2200', '3400'] },
		{ Chinese: '生产/营运/采购/物流', English: 'Manufacturing, Operation, Purchasing, Logistics', subIds: ['3500', '3600', '0500', '5400', '3700', '6200', '3800', '6300', '3900', '4000', '0800', '5900'] },
		{ Chinese: '生物/制药/医疗/护理', English: 'Biotechnology, Pharmaceuticals, Healthcare', subIds: ['4100', '5500', '1300'] },
		{ Chinese: '广告/市场/媒体/艺术', English: 'Advertising, Marketing, Media, Design', subIds: ['4200', '4300', '0300', '4400', '4500', '0900'] },
		{ Chinese: '建筑/房地产', English: 'Construction, Real Estate', subIds: ['2100', '4600', '4700', '6000'] },
		{ Chinese: '人事/行政/高级管理', English: 'HR, Admin., Senior Management', subIds: ['0600', '0700', '2300'] },
		{ Chinese: '咨询/法律/教育/科研', English: 'Consultant, Legal, Education', subIds: ['1400', '1100', '1200', '5700', '1000'] },
		{ Chinese: '服务业', English: 'Service', subIds: ['4800', '4900', '5000', '6400', '6500', '5100', '1800', '5200'] },
		{ Chinese: '公务员/翻译/其他', English: 'Official, Translator, Others', subIds: ['1500', '2000', '1600', '1700', '5300', '1900', '5600', '5800'] }
	];
    pt.initFuntypeLayerNew = function (fullLang) {
        this.createTableNew();
        for (var i = 0; i < this.funtypePare.length; i++) {
            this.funtypePare[i]['parentName'] = this.funtypePare[i][fullLang];
            this.createSelectTrNew(this.funtypePare[i]);
        }
    }
})();

(function () {

    //check the class name , it will be replaced when existed
    if (window.EHRIndtypeLayerNew) {
        alert('variable EHRIndtypeLayerNew has been used,it will be replaced with _EHRIndtypeLayerNew!');
        window._EHRIndtypeLayerNew = window.EHRIndtypeLayerNew;
    }

    window.EHRIndtypeLayerNew = function (param) {
        param = param instanceof Object ? param : {};
        param.data = ctIndType;
        EHRLayer.apply(this, [param]);
    } .$EHRExtends(EHRLayer);

    var pt = EHRIndtypeLayerNew.prototype;

    //行业分类数据字典
    pt.indtypePare = [
		{ Chinese: '计算机/互联网/通信/电子', English: 'Computer, Internet, Telecom, Electronics', subIds: ['01', '37', '38', '31', '39', '32', '40', '02', '35'] },
		{ Chinese: '会计/金融/银行/保险', English: 'Accounting, Finance, Banking, Insurance', subIds: ['41', '03', '42', '43', '62'] },
		{ Chinese: '贸易/消费/制造/营运', English: 'Trade, Sales, Manufacturing, Operations', subIds: ['04', '22', '05', '06', '44', '60', '45', '14', '33'] },
		{ Chinese: '制药/医疗', English: 'Pharmaceuticals, Healthcare', subIds: ['08', '46', '47'] },
		{ Chinese: '广告/媒体', English: 'Advertising, Media Related', subIds: ['12', '48', '49', '13', '15'] },
		{ Chinese: '房地产/建筑', English: 'Real Estates Related', subIds: ['26', '09', '50', '51'] },
		{ Chinese: '专业服务/教育/培训', English: 'Professional Services, Education, Training', subIds: ['34', '07', '59', '52', '18', '23', '24', '63'] },
		{ Chinese: '服务业', English: 'Customer Services', subIds: ['11', '53', '17', '54', '27'] },
		{ Chinese: '物流/运输', English: 'Logistics, Transportation', subIds: ['21', '55'] },
		{ Chinese: '能源/原材料', English: 'Utilities and Raw Materials Related', subIds: ['19', '16', '36', '61', '56'] },
		{ Chinese: '政府/非赢利机构/其他', English: 'Government, Non Profit, Others', subIds: ['28', '57', '20', '29', '58'] }
	];

    pt.initIndtypeLayerNew = function (fullLang) {

        this.createTableNew();
        for (var i = 0; i < this.indtypePare.length; i++) {
            this.indtypePare[i]['parentName'] = this.indtypePare[i][fullLang];
            this.createSelectTrNew(this.indtypePare[i]);
        }
    }

})();

(function () {
    if (window.EHRMajorLayerNew) {
        alert('variable EHRMajorLayerNew has been used,it will be replaced with _EHRMajorLayerNew!');
        window._EHRMajorLayerNew = window.EHRMajorLayerNew;
    }

    window.EHRMajorLayerNew = function (param) {
        param = param instanceof Object ? param : {};
        param.data = ctMajor;
        EHRLayer.apply(this, [param]);
    } .$EHRExtends(EHRLayer);

    var pt = EHRMajorLayerNew.prototype;

    //专业分类数据字典
    pt.EHRMajorLayerPare = [
		{ Chinese: '哲学', English: 'Philosophy', subIds: ['1100'] },
		{ Chinese: '经济学', English: 'Economics', subIds: ['1000'] },
		{ Chinese: '管理学', English: 'Management', subIds: ['0200', '0300', '0400', '3500'] },
		{ Chinese: '文学', English: 'Literature', subIds: ['0700', '3900', '1200'] },
		{ Chinese: '工学', English: 'Engineering', subIds: ['3600', '3700', '0500', '0600', '1900', '2100', '2200', '2300', '2400', '2500', '2600', '2700', '2900', '2800', '3000', '3200', "4100"] },  // modify by peggy 20130508 将“生物医学工程类”加入“工学”类中
		{Chinese: '法学', English: 'Law', subIds: ['0900'] },
		{ Chinese: '历史学', English: 'History', subIds: ['1300'] },
		{ Chinese: '理学', English: 'Science', subIds: ['1400', '1500', '1600', '3100', '1700', '1800', '0100', '3800', '2000'] },
		{ Chinese: '教育学', English: 'Education', subIds: ['0800'] },
		{ Chinese: '医学', English: 'Medicine', subIds: ['3400', "4000"] },
		{ Chinese: '农学', English: 'Agriculture', subIds: ['3300'] }
	];

    pt.initEHRMajorLayer = function (fullLang) {
        this.createTableNew();
        for (var i = 0; i < this.EHRMajorLayerPare.length; i++) {
            this.EHRMajorLayerPare[i]['parentName'] = this.EHRMajorLayerPare[i][fullLang];
            this.createSelectTrNew(this.EHRMajorLayerPare[i]);
        }
    }

})();
//****************************End  职能，行业，专业弹层***************************************************** //
//初始化职能层,行业层,专业层内部数据
function initFunSelectedNew() {
    window.config.selectedVal = "";
    var a = EHR.$(window.config.hidSave);
    var temp = new Array();
    if (a.value != "") {
        var pos = a.value.indexOf("$");
        var lstPos = a.value.lastIndexOf("$");
        //判断格式是否是$a|c$
        if (pos != 0 && lstPos) {
            a.value = "$" + a.value + "$";
        }
        var c = EHR.$("funSelectedTd" + (window.config.uniqueId || "")),
        b = a.value.split("$");

        for (var i = 0; i < b.length; i++) {
            if (b[i].trim() != "") {
                temp.push(b[i]);
            }
        }
        window.config.selectedVal = a.value;
        c.innerHTML = "";
        var e = window.config.limitNum == 1 ? 1 : 0;
        $.each(temp, function (i, ele) {
            if (ele != null && ele != "" && ele != undefined) {
                var d = ele.split("|");
                d = "<a class=\"Common_region\"><b style=\"color:#fff; font-weight:normal\">" + d[0] + "</b><i onclick='setObjValNew(\"" + d[0] + '","' + d[1] + "\",this," + e + ")' id='EHRSelectedCHK" + d[1] + "' class=\"Common_icon Common_icon_remove_white\"></i></a>";
                c.innerHTML += d;
            }
        });
    }
}

//职能层确定按钮绑定事件
function confirmSelectedEle() {
    initSaveText();
    if (config.mode == "1") {
        $("#" + strS + "_weizao").css("display", "none");
        var strValue = window.config.selectedVal.split('$');
        var val = "";
        var strValue = "";
        var codeList = window.config.selectedVal.split('$');
        for (var i = 0; i < codeList.length; i++) {
            if (codeList[i] != "") {
                strValue += codeList[i].split('|')[0] + "+";
            }
        }
        if (strValue != "") {
            strValue = strValue.substring(0, strValue.length - 1);
        }
        $("#" + config.txtSave).attr("title", strValue);
        strValue = getBytes(strValue, 18);
        $("#" + config.txtSave).val(strValue);
        return;
    }
    var c = window.config.txtSave,
    a = window.config.selectedVal,
    b = "",
    d, e;
    var strS = c.substr(0, c.lastIndexOf("_txt"));
    var closeTip = lang == "C" ? "关闭" : "close";
    e = $("#" + window.config.hidSave);
    $("#" + c).parent().removeClass('Common_onHere');
    if (a == "") {
        e.val('');
        $("#" + strS + "_txt").css("display", "");
        $("#" + strS + "_weizao").css("display", "none");
    }
    else {
        var temp = new Array();
        d = a.split("$");
        for (var i = 0; i < d.length; i++) {
            if (d[i].trim() != "") {
                temp.push(d[i]);
            }
        }
        $("#" + strS + "_select").remove();
        if (temp.length > 0) {
            var divSelectTxtS = "<div id='" + strS + "_select" + "' class='Common_chick-unit'><ul>";
            var divSelectTxtE = "</ul></div>";
            var divSelectTxt = "";
            $.each(temp, function (i, ele) {
                if (ele != null && ele != "" && ele != undefined) {
                    var e = ele.split("|");

                    //添加绑定联想层
                    var strCode = e[1];
                    var strValue = e[0];
                    var strSubValue = strValue;
                    if (ele.indexOf("|") > 0 && strValue != "" && strCode != "") {
                        if (EHR.getStrLength(strSubValue) > 12)  //联想内容因宽度不够显示不全，用...表示
                        {
                            strSubValue = EHR.getSubString(strSubValue, 11);
                        }
                        divSelectTxt += "<li title=\"" + strValue + "\">" + strSubValue + " <a href=\"javascript:void(0);\" class='Common_icon Common_icon_remove_block' onclick=\"deleteOneOption(this, '" + strCode + "','" + window.config.hidSave + "');\" ></a></li>";
                    }
                }
            });
            divSelectTxt = divSelectTxtS + divSelectTxt + divSelectTxtE;
            $("#" + c).after(divSelectTxt);
            $("#" + strS + "_weizao").css("display", "");
            $("#" + strS + "_txt").css("display", "none");
        }
        else {
            $("#" + c).parent().removeClass('Common_onHere');
            $("#" + strS + "_txt").css("display", "");
            $("#" + strS + "_weizao").css("display", "none");
        }
    }
}

function initSaveText() {
    var a = window.config.selectedVal, e;
    e = $("#" + window.config.hidSave);
    e.val(a);
    EHR.closeDivBox(1);
    EHR.CloseDivMask();
}
//取消按钮绑定事件
function closeFunDiv() {
    window.config.selectedVal = "";
    if (window.config.txtSave != '') {
        var d = $("#" + window.config.txtSave);
        d.parent().removeClass('Common_onHere');
    }
    EHR.closeDivBox(1);
    EHR.CloseDivMask();
}

//职能,行业,专业层中移除项处理事件(新)
function setObjValNew(a, c, b, type) {
    EHR.$(window.config.hidSave);
    var d = EHR.$("funSelectedTd" + (window.config.uniqueId || ""));
    if (window.config.isMulti) {
        var e = b ? b : EHR.$("EHRLayerCHK" + c);
        var f = !0;
        if (e.getAttribute('e')) {
            f = !1;
        }
        b = window.config.selectedVal.length == 0 ? "$" : window.config.selectedVal;
        if (window.config.limitNum == 1 && type != 1) {
            b = "$";
        }
        var pos = b.indexOf("$");
        var lstPos = b.lastIndexOf("$");
        //判断格式是否是$a|c$
        if (pos != 0 && lstPos) {
            b = "$" + b + "$";
        }
        var h = (b.indexOf("$" + a + "|" + c + "$") < 0);
        var g = window.config.isMulti && window.config.maxSelectNum && isMaxNum(b);
        //layer点击控件不为checkbox
        if (!f) {
            g = g && !f && h;
        } else {
            g = g && e.checked;
        }
        if (g) return showMaxBox('EHRDivBox' + (window.config.uniqueId || ''), 'DivAlert'),
    e.checked = !1;
        e = !0;
        h ? (b += a + "|" + c + "$", window.config.selectedVal = b, e = !1) : (b = b.replace("$" + a + "|" + c + "$", "$"), window.config.selectedVal = b);
        if (e) {
            a = b.split("$");
            d.innerHTML = "";
            for (c = 1; c < a.length - 1; c++) a[c] != "" && (b = a[c].split("|"), b = "<a class=\"Common_region\"><b style=\"color:#fff; font-weight:normal\">" + b[0] + "</b><i class=\"Common_icon Common_icon_remove_white\" onclick='setObjValNew(\"" + b[0] + '","' + b[1] + "\",this)' id='EHRSelectedCHK" + b[1] + "'></i></a>", d.innerHTML += b)
        }
        else {
            d.innerHTML += "<a class=\"Common_region\"><b style=\"color:#fff; font-weight:normal\">" + a + "</b><i class=\"Common_icon Common_icon_remove_white\" onclick='setObjValNew(\"" + a + '","' + c + "\",this)' id='EHRSelectedCHK" + c + "'></i></a>";
            if (window.config.limitNum == 1) {
                confirmSelectedEle();
            }
        }
    } else window.config.selectedVal = a + "|" + c,
  d.innerHTML = a,
  EHR.closeDivBox(1);
}
//职能层选中项处理事件
function setObjValFun_P(a, c, b) {
    for (var d = EHR.$("EHRSubDiv" + (window.config.uniqueId || "")).getElementsByTagName("input"), e = 0; e < d.length; e++) if (d[e].id != a.id && (d[e].disabled = a.checked, d[e].checked)) d[e].checked = !1,
  setObjValFun(d[e].parentNode.innerText ? d[e].parentNode.innerText : d[e].parentNode.textContent, d[e].id.replace("EHRLayerCHK", ""));
    setObjValFun(c, b);
}
//职能层判断选中个数
function isMaxNum(a) {
    a = a.replace(/^[$]+|[$]+$/g, "");
    if (a != "" && a.split("$").length >= window.config.maxSelectNum) return !0;
    return !1
}

//confirmEvent:自定义确定事件，为空时默认确认事件
function showFunDivNew(clt, hidId, txtId, confirmEvent, option) {
    if (txtId != '') $("#" + txtId).parent().addClass('Common_onHere');
    var confirmEventRe = confirmEvent ? ('initSaveText();' + confirmEvent) : 'confirmSelectedEle();';
    window.config = {
        divClass: 'Common_panelBox Common_panel_select_category_b Common_jobs_jobLayer', //div样式
        divMOverClass: 'Common_jobs_jobs_asslselect',                      //div移入时的样式
        divMOutClass: 'Common_jobs_jobs_assloption',                       //div移出时的样式
        subDivMOverClass: 'Common_jobs_jobs_asslselect',                   //子层移入时的样式
        subDivMOutClass: 'Common_jobs_jobs_assloption',                    //子层移出时的样式  
        subDivClass: 'Common_jobs_jobSubLayer',                            //子层样式  
        subTableClass: 'Common_table_trade',                               //子层Table样式           
        uniqueId: "fun",                                            //标识ID
        funType: 'Fun',                                             //功能类型
        hidSave: hidId,                                             //保存选择的值
        txtSave: txtId,                                             //存放选择值的文本框
        limitNum: 3,                                                //最多能选择项数
        maxSelectNum: 3,                                            //最多能选择项数(仅当isMulti为true才有效)
        isMulti: true,                                              //是否可多选
        isNewVer: true,                                             //是否是新版本
        title: '',
        mode: 0                                     //1 代表赋值文本框 则不供给用户可以删除已选条件

    };
    if (typeof (option) != "undefined") {
        $.extend(config, option);
    }
    config.title = '<p>' + layer_workfun_title.format(config.maxSelectNum) + '</p> <a class="Common_panel_closebtn" onclick="' + confirmEventRe + '">' + C_confirm_Title + '</a><a class="Common_panel_cancelbtn" onclick="closeFunDiv();">' + C_Cancel_Title + '</a>'
    var f = new EHRFunLayerNew({ config: config });
    f.data = ctFunType; //数据源ft
    f.initFuntypeLayerNew((lang == 'ch' ? "Chinese" : "English"));
    f.showDivNew('', 1, (lang == 'ch' ? "Chinese" : "English"));
    initFunSelectedNew();
    return false;
}

//新行业弹层显示 --addby chenlongwei
function showIndustryDiv(ctl, hidId, txtId, confirmEvent, option) {
    if (txtId != '') $("#" + txtId).parent().addClass('Common_onHere');
    var confirmEventRe = confirmEvent ? ('initSaveText();' + confirmEvent) : 'confirmSelectedEle();';
    window.config = {
        divClass: 'Common_panelBox Common_panel_select_industry Common_jobs_jobLayer', //div样式
        subDivClass: 'Common_jobs_jobSubLayer',                          //子层样式  
        subTableClass: 'Common_table_trade',                             //子层Table样式
        uniqueId: "ind",                                          //标识ID
        funType: 'Ind',                                           //功能类型
        hidSave: hidId,                                           //保存选择的值
        txtSave: txtId,                                           //存放选择值的文本框
        limitNum: 3,                                              //最多能选择项数
        maxSelectNum: 3,                                          //最多能选择项数(仅当isMulti为true才有效)
        isMulti: true,                                            //是否可多选
        isNewVer: true,                                           //是否是新版本
        title: '',
        mode: 0                                     //1 代表赋值文本框 则不供给用户可以删除已选条件

    };
    if (typeof (option) != "undefined") {
        $.extend(config, option);
    }
    config.title = '<p>' + layer_workInd_title.format(config.maxSelectNum) + '</p> <a class="Common_panel_closebtn" onclick="' + confirmEventRe + '">' + C_confirm_Title + '</a><a class="Common_panel_cancelbtn" onclick="closeFunDiv();">' + C_Cancel_Title + '</a>'
    var f = new EHRIndtypeLayerNew({ config: config });
    f.data = ctIndType; //数据源ft
    f.initIndtypeLayerNew((lang == 'ch' ? "Chinese" : "English"));
    f.showDivNew('', 1, (lang == 'ch' ? "Chinese" : "English"));
    initFunSelectedNew();
    return false;
}
function showMajorDiv(ctl, hidId, txtId, confirmEvent, option) {
    if (txtId != '') $("#" + txtId).parent().addClass('Common_onHere');
    var confirmEventRe = confirmEvent ? ('initSaveText();' + confirmEvent) : 'confirmSelectedEle();';
    window.config = {
        divClass: 'Common_panelBox Common_panel_select_major Common_jobs_jobLayer', //div样式
        divMOverClass: 'Common_jobs_jobs_asslselect',                 //div移入时的样式
        divMOutClass: 'Common_jobs_jobs_assloption',                  //div移出时的样式
        subDivClass: 'Common_jobs_jobSubLayer',                       //子层样式   
        subTableClass: 'Common_specialtyTable',                       //子层Table样式
        uniqueId: "major",                                     //标识ID
        funType: 'Major',                                      //功能类型
        hidSave: hidId,                                        //保存选择的值
        txtSave: txtId,                                        //存放选择值的文本框
        limitNum: 3,                                           //最多能选择项数
        maxSelectNum: 3,                                       //最多能选择项数(仅当isMulti为true才有效)
        colNum: 5,                                             //列数(默认为4)
        isMulti: true,                                         //是否可多选
        isNewVer: true,                                        //是否是新版本
        title: '',
        mode: 0                                     //1 代表赋值文本框 则不供给用户可以删除已选条件

    };
    if (typeof (option) != "undefined") {
        $.extend(config, option);
    }
    config.title = '<p>' + layer_workMajor_title.format(config.maxSelectNum) + '</p> <a class="Common_panel_closebtn" onclick="' + confirmEventRe + '">' + C_confirm_Title + '</a><a class="Common_panel_cancelbtn" onclick="closeFunDiv();">' + C_Cancel_Title + '</a>';
    var f = new EHRMajorLayerNew({ config: config });
    f.data = ctMajor; //数据源ft
    f.initEHRMajorLayer((lang == 'ch' ? "Chinese" : "English"));
    f.showDivNew('', 1, (lang == 'ch' ? "Chinese" : "English"));
    initFunSelectedNew();
    return false;
}

function showMaxBox(div, alertdiv) {
    var subDiv = EHR.$("EHRSubDiv" + (window.config.uniqueId || ""));
    if (subDiv != null) {
        subDiv.style.display = "none";
    }
    var top = $('#' + div).height() / 2 - 30;
    var left = $('#' + div).width() / 2 - 100;
    //最多3项提示
    $('#' + div + alertdiv).css({ 'top': top + 'px', 'left': left + 'px' }).fadeIn("slow").fadeOut(2000, "linear");
}

function deleteOneOption(ctrl, code, unId) {
    var obj = $("#" + unId);
    var strS = unId.substring(0, unId.lastIndexOf('_'));
    formatSelectedValue(obj);
    var strVal = obj.val();
    var ul = $(ctrl).parent().parent();
    obj.val(strVal.replace($(ctrl).parent().attr("title") + "|" + code, ""))
    $(ctrl).parent().remove();
    if (ul.html() === '') {
        ul.remove();
        //$("#" + strS + "_txt").parent().removeClass('Common_onHere');
        $("#" + strS + "_txt").css("display", "");
        $("#" + strS + "_weizao").css("display", "none");
    }
    formatSelectedValue(obj);

}

function formatSelectedValue(obj) {
    var strValue = obj.val();
    strValue = strValue.replace(/\$\$\$/g, "$");
    strValue = strValue.replace(/\$\$/g, "$");
    if (strValue.length > 1 && strValue.substr(strValue.length - 1, 1) == "$") {
        strValue = strValue.substr(0, strValue.length - 1);
    }
    if (strValue.length > 1 && strValue.substr(0, 1) == "$") {
        strValue = strValue.substr(1, strValue.length - 1);
    }
    if (strValue == "$") {
        strValue = "";
    }
    obj.val(strValue);
}
